Skip to content

Instantly share code, notes, and snippets.

@sigu
Created June 6, 2018 02:25
Show Gist options
  • Save sigu/c2995307a3f5720e0bf5c1eb00b7a93e to your computer and use it in GitHub Desktop.
Save sigu/c2995307a3f5720e0bf5c1eb00b7a93e to your computer and use it in GitHub Desktop.
granting permision to a sub bucket in amazon s3 bucket. The other items remain private
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AddPerm",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bucket/subbucket/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment