Last active
June 8, 2017 13:24
-
-
Save kellyrmilligan/a8a430ac5108008a0e97ce073f7ab904 to your computer and use it in GitHub Desktop.
bucket policy example for deploying to s3 with circleci
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Id": "Policy1489770524467", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1489770487230", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "[arn of iam user you created for circleci]" | |
}, | |
"Action": [ | |
"s3:PutObject", | |
"s3:PutObjectAcl", | |
"s3:GetObject", | |
"s3:DeleteObject" | |
], | |
"Resource": "arn:aws:s3:::[insert bucket name]/*" | |
}, | |
{ | |
"Sid": "Stmt1489770522510", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "[arn of iam user you created for circleci]" | |
}, | |
"Action": "s3:ListBucket", | |
"Resource": "arn:aws:s3:::[insert bucket name]" | |
}, | |
{ | |
"Sid": "Stmt1489773573773", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::[insert bucket name]/*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment