Skip to content

Instantly share code, notes, and snippets.

@kainam00
Created August 7, 2015 16:26
Show Gist options
  • Save kainam00/af3aabf2219c72e1cfa4 to your computer and use it in GitHub Desktop.
Save kainam00/af3aabf2219c72e1cfa4 to your computer and use it in GitHub Desktop.
S3 bucket policy template
{
"Version": "2008-10-17",
"Id": "Policy1357935677554",
"Statement": [
{
"Sid": "Stmt1357935647218",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::123123123123:root"
},
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::mybucketname"
},
{
"Sid": "Stmt1357935676138",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::123123123123:root"
},
"Action": [
"s3:GetObject",
"s3:PutObject"
],
"Resource": "arn:aws:s3:::mybucketname/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment