Skip to content

Commit

Permalink
Add logs:CreateLogGroup action to default policy
Browse files Browse the repository at this point in the history
  • Loading branch information
rockinrimmer authored May 23, 2020
1 parent f9fd677 commit bfd5132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class ServerlessIamPerFunctionPlugin {
//set log statements
policyStatements[0] = {
Effect: "Allow",
Action: ["logs:CreateLogStream", "logs:PutLogEvents"],
Action: ["logs:CreateLogStream", "logs:CreateLogGroup", "logs:PutLogEvents"],
Resource: [
{
'Fn::Sub': 'arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}' +
Expand Down

0 comments on commit bfd5132

Please sign in to comment.