Skip to content

Instantly share code, notes, and snippets.

@thoughtpalette
Created March 18, 2016 20:25
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 thoughtpalette/1284b6891098ba713956 to your computer and use it in GitHub Desktop.
Save thoughtpalette/1284b6891098ba713956 to your computer and use it in GitHub Desktop.
Bucket policy for AWS S3 to make assets available publicly.
{
"Version":"2008-10-17",
"Statement":[{
"Sid":"AllowPublicRead",
"Effect":"Allow",
"Principal": {
"AWS": "*"
},
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::YOUR_BUCKET_NAME/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment