Skip to content

Instantly share code, notes, and snippets.

@kellyrmilligan
Last active June 8, 2017 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kellyrmilligan/a8a430ac5108008a0e97ce073f7ab904 to your computer and use it in GitHub Desktop.
Save kellyrmilligan/a8a430ac5108008a0e97ce073f7ab904 to your computer and use it in GitHub Desktop.
bucket policy example for deploying to s3 with circleci
{
"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