Skip to content

Commit

Permalink
Add source arn field to cloudwatch lambda permission
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0Aja committed Oct 4, 2024
1 parent 2ac7c3d commit 119be8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aws/logs_monitoring/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,10 @@ Resources:
Action: lambda:InvokeFunction
Principal: !If
- IsAWSChina
- !Sub "logs.${AWS::Region}.amazonaws.com.cn"
- !Sub "logs.${AWS::Region}.amazonaws.com"
- !Sub "logs.amazonaws.com.cn"
- !Sub "logs.amazonaws.com"
SourceAccount: !Ref "AWS::AccountId"
SourceArn: !Sub "arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:*:*"
S3Permission:
Type: AWS::Lambda::Permission
Properties:
Expand Down

0 comments on commit 119be8e

Please sign in to comment.