Skip to content

Instantly share code, notes, and snippets.

@bsima
Last active August 29, 2015 14:10
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 bsima/d375c3ff284155560028 to your computer and use it in GitHub Desktop.
Save bsima/d375c3ff284155560028 to your computer and use it in GitHub Desktop.
Permissions policy for AWS S3-hosted static websites
{
"Version": "2008-10-17",
"Statement": [{
"Sid": "PublicReadForGetBucketObjects",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::mybucketname/*"
}]
}
@bsima
Copy link
Author

bsima commented Jan 21, 2015

To edit this on S3, click on the Bucket Properties tab > Permissions > Edit Bucket Policy, then copy and paste this into the text box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment