Last active
August 29, 2015 14:10
-
-
Save bsima/d375c3ff284155560028 to your computer and use it in GitHub Desktop.
Permissions policy for AWS S3-hosted static websites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2008-10-17", | |
"Statement": [{ | |
"Sid": "PublicReadForGetBucketObjects", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::mybucketname/*" | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To edit this on S3, click on the Bucket Properties tab > Permissions > Edit Bucket Policy, then copy and paste this into the text box.