Skip to content

Instantly share code, notes, and snippets.

@kiasaki
Last active August 29, 2015 14:12
Show Gist options
  • Save kiasaki/6a2118d1090677a5e4c1 to your computer and use it in GitHub Desktop.
Save kiasaki/6a2118d1090677a5e4c1 to your computer and use it in GitHub Desktop.
IAM Policy for one bucket access
{
"Statement": [
{
"Action": [
"s3:ListAllMyBuckets"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::*"
]
},
{
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::BUCKET"
]
},
{
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::BUCKET/*"
]
}
],
"Version": "2012-10-17"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment