Skip to content

Commit

Permalink
Merge pull request #42 from guardian/tf-deploy-policy
Browse files Browse the repository at this point in the history
Deploy bucket policy
  • Loading branch information
tomrf1 authored May 4, 2021
2 parents 599e17d + 8dc9cac commit 792ab9f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ Resources:
Resource:
- !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/support-reminders/db-config/${Stage}
- !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/support-reminders/idapi/${Stage}/*
- Statement:
Effect: Allow
Action: s3:GetObject
Resource:
- arn:aws:s3::*:membership-dist/*
Events:
CreateOneOff:
Type: Api
Expand Down Expand Up @@ -127,6 +132,11 @@ Resources:
Resource:
- !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/support-reminders/db-config/${Stage}
- !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/support-reminders/idapi/${Stage}/*
- Statement:
Effect: Allow
Action: s3:GetObject
Resource:
- arn:aws:s3::*:membership-dist/*
Events:
CreateOneOff:
Type: Api
Expand Down Expand Up @@ -166,6 +176,11 @@ Resources:
Resource:
- !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/support-reminders/db-config/${Stage}
- !Sub arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/support-reminders/idapi/${Stage}/*
- Statement:
Effect: Allow
Action: s3:GetObject
Resource:
- arn:aws:s3::*:membership-dist/*
Events:
Reactivate:
Type: Api
Expand Down Expand Up @@ -213,6 +228,11 @@ Resources:
Resource:
- !Sub arn:aws:s3:::${DatalakeBucket}
- !Sub arn:aws:s3:::${DatalakeBucket}/*
- Statement:
Effect: Allow
Action: s3:GetObject
Resource:
- arn:aws:s3::*:membership-dist/*
Events:
Schedule:
Type: Schedule
Expand Down Expand Up @@ -262,6 +282,11 @@ Resources:
Resource:
- !Sub arn:aws:s3:::${DatalakeBucket}
- !Sub arn:aws:s3:::${DatalakeBucket}/*
- Statement:
Effect: Allow
Action: s3:GetObject
Resource:
- arn:aws:s3::*:membership-dist/*
Events:
Schedule:
Type: Schedule
Expand Down

0 comments on commit 792ab9f

Please sign in to comment.