Skip to content

Instantly share code, notes, and snippets.

@abdul
Created September 16, 2016 17:47
Show Gist options
  • Save abdul/0db409f6d9795418f612f22ffab2be58 to your computer and use it in GitHub Desktop.
Save abdul/0db409f6d9795418f612f22ffab2be58 to your computer and use it in GitHub Desktop.
AWS IAM - Strict Bucket only policy - No BucketListing
{
"Statement": [
{
"Effect": "Deny",
"Action": [
"s3:*"
],
"NotResource": [
"arn:aws:s3:::<bucket>",
"arn:aws:s3:::<bucket>/*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::<bucket>",
"arn:aws:s3:::<bucket>/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment