Skip to content

Commit

Permalink
Add the lambda permissions to create log group
Browse files Browse the repository at this point in the history
  • Loading branch information
guyrenny committed Nov 12, 2024
1 parent 90e07c6 commit 17451e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,14 @@ Resources:
PolicyDocument:
Version: "2012-10-17"
Statement:
# Create and write to log group for the lambda logs
- Effect: Allow
Action:
- 'logs:CreateLogGroup'
- 'logs:CreateLogStream'
- 'logs:PutLogEvents'
Resource: !Sub 'arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/*'

# Assume Role Policy
- !If
- IsLambdaAssumeRoleEnable
Expand Down

0 comments on commit 17451e6

Please sign in to comment.