Skip to content

Instantly share code, notes, and snippets.

@j26design
Created February 9, 2016 03:30
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 j26design/5a67f819aef042c98da3 to your computer and use it in GitHub Desktop.
Save j26design/5a67f819aef042c98da3 to your computer and use it in GitHub Desktop.
Amazon Cloudfront S3 bucket policy makes all objects publicly accessible by default.
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::replace-with-folder-name/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment