Skip to content

Commit

Permalink
Attempting to add events permission
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed May 24, 2021
1 parent 0db19d5 commit eb53ddd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ Resources:
Policies:
- AWSCodePipelineReadOnlyAccess
- AWSLambdaBasicExecutionRole
- !Ref EventsPolicy
- KMSDecryptPolicy:
KeyId: !Ref EncryptionKeyId
Events:
Expand Down Expand Up @@ -442,6 +443,19 @@ Resources:
Effect: Allow
Resource: "*"

# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html
EventsPolicy:
Type: AWS::IAM::ManagedPolicy
Properties:
Description: ManageEvents
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- events:Describe*
Resource: !Sub "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${ApplicationStackName}"

# More info about Outputs: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html
Outputs:
StatusFunction:
Expand Down

0 comments on commit eb53ddd

Please sign in to comment.