Skip to content

Instantly share code, notes, and snippets.

@dirtyhenry
Last active December 23, 2015 18:29
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 dirtyhenry/6675770 to your computer and use it in GitHub Desktop.
Save dirtyhenry/6675770 to your computer and use it in GitHub Desktop.
This is the permission you need to set with Amazon AWS S3 to provide full access to a "mybucket" bucket and read-access only to all your buckets.
{
"Statement": [
{
"Effect": "Allow",
"Action": "S3:*",
"Resource": "arn:aws:s3:::mybucket/*",
"Condition": {}
},
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": "arn:aws:s3:::mybucket",
"Condition": {}
},
{
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment