Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Add Lambda Permission policy #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion cf/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,14 @@ Resources:
Arn:
Fn::GetAtt:
- PartitionLambda
- Arn
- Arn

## Permissions for CloudWatch Events to invoke the Lambda function
PartitionLambdaPolicy:
Type: AWS::Lambda::Permission
Properties:
Action: lambda:InvokeFunction
FunctionName: !Ref PartitionLambda
Principal: events.amazonaws.com
SourceArn: !GetAtt LambdaSchedule.Arn