Skip to content

Instantly share code, notes, and snippets.

@makevoid
Created December 18, 2017 18:11
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 makevoid/8bc72950ca2b237a4099ae51b2c4192f to your computer and use it in GitHub Desktop.
Save makevoid/8bc72950ca2b237a4099ae51b2c4192f to your computer and use it in GitHub Desktop.
S3 AWS Policy - Allow access and management of a single bucket + list buckets permission (so most S3 clients don't complain - remove the ListAllMyBuckets and restrict bucket management for extra security)
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::BUCKET_NAME",
"arn:aws:s3:::BUCKET_NAME/*"
]
},
{
"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