Skip to content

Instantly share code, notes, and snippets.

@enricodeleo
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enricodeleo/ebb4df4fdba020557ef6 to your computer and use it in GitHub Desktop.
Save enricodeleo/ebb4df4fdba020557ef6 to your computer and use it in GitHub Desktop.
Deny access to a subdirectory on S3
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "DenyPublicRead",
"Effect": "Deny",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::BUCKETNAME/DIRECTORY/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment