Skip to content

Instantly share code, notes, and snippets.

@smajda
Created June 3, 2014 17:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smajda/35ec842de18b9f4d4fb7 to your computer and use it in GitHub Desktop.
Save smajda/35ec842de18b9f4d4fb7 to your computer and use it in GitHub Desktop.
Amazon S3 Bucket Policy: allow public read of any file in bucket. Note: replace 'bucket_name_here'. Source: http://stackoverflow.com/a/4709391
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bucket_name_here/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment