Skip to content

Instantly share code, notes, and snippets.

@ae6rt
Last active December 20, 2015 01:08
Show Gist options
  • Save ae6rt/6046413 to your computer and use it in GitHub Desktop.
Save ae6rt/6046413 to your computer and use it in GitHub Desktop.
Restrict access on an S3 bucket to a set of operations
{
"Version":"2012-10-17",
"Statement":[
{
"Effect":"Allow",
"Action":[
"s3:ListBucket",
"s3:GetBucketAcl",
"s3:PutBucketAcl"
],
"Resource":[
"arn:aws:s3:::org.example.foobucket"
]
},
{
"Action":[
"s3:*"
],
"Sid":"Stmt1374283667000",
"Resource":[
"arn:aws:s3:::org.example.foobucket/*"
],
"Effect":"Allow"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment