Skip to content

Instantly share code, notes, and snippets.

@abdul
Created September 16, 2016 17:45
Show Gist options
  • Save abdul/22aa9f4e3b9905f14045a2d0311f35c9 to your computer and use it in GitHub Desktop.
Save abdul/22aa9f4e3b9905f14045a2d0311f35c9 to your computer and use it in GitHub Desktop.
AWS IAM Policy to allow Bucket only access
{
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::<bucket/prefix>",
"arn:aws:s3:::<bucket/prefix>/*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets"
],
"Resource": [
"arn:aws:s3:::*",
"Condition": {}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment