Skip to content

Instantly share code, notes, and snippets.

@shirish87
Created February 26, 2015 20:16
Show Gist options
  • Save shirish87/108f5d57968ee5d8d823 to your computer and use it in GitHub Desktop.
Save shirish87/108f5d57968ee5d8d823 to your computer and use it in GitHub Desktop.
Provides private access to all files in the bucket except the "test" folder.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Allow IAM root",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::133713371337:root"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::dah_bucket/*"
},
{
"Sid": "Allow All",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::dah_bucket/test/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment