Skip to content

Commit

Permalink
Fix bucket policy syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Madelyn Kasula committed Jun 22, 2020
1 parent cd78164 commit acedfdb
Showing 1 changed file with 13 additions and 23 deletions.
36 changes: 13 additions & 23 deletions aws/cloudformation/s3_buckets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,19 @@ Resources:
Bucket: !Ref LibraryBucket
PolicyDocument:
Statement:
- Sid: Grant Drone permission to objects created by CI tests.
Effect: 'Allow'
Action:
- 's3:*'
Resource:
- 'arn:aws:s3:::cdo-v3-libraries/libraries_circle/*'
Principal:
{
AWS: [!Sub "arn:aws:iam::${DeveloperAccount}:role/DroneWorker"],
}
- Sid: Grant Drone permission to list objects for CI tests.
Effect: 'Allow'
Action:
- 's3:ListBucket*'
Resource:
- 'arn:aws:s3:::cdo-v3-libraries'
Condition:
StringLike:
- 's3:Prefix': 'libraries_circle/*'
Principal:
{
AWS: [!Sub "arn:aws:iam::${DeveloperAccount}:role/DroneWorker"],
}
- Sid: Grant Drone permission to objects created by CI tests.
Effect: 'Allow'
Action: 's3:*'
Resource: 'arn:aws:s3:::cdo-v3-libraries/libraries_circle/*'
Principal: {AWS: [!Sub "arn:aws:iam::${DeveloperAccount}:role/DroneWorker"]}
- Sid: Grant Drone permission to list objects for CI tests.
Effect: 'Allow'
Action: 's3:ListBucket*'
Resource: 'arn:aws:s3:::cdo-v3-libraries'
Condition:
StringLike:
's3:Prefix': 'libraries_circle/*'
Principal: {AWS: [!Sub "arn:aws:iam::${DeveloperAccount}:role/DroneWorker"]}
SpritelabAnimationBucket:
Type: 'AWS::S3::Bucket'
Properties:
Expand Down

0 comments on commit acedfdb

Please sign in to comment.