Skip to content

Instantly share code, notes, and snippets.

@ChenLiZhan
Last active July 19, 2018 03:36
Show Gist options
  • Save ChenLiZhan/9f5c9d1611afe38dff480e46554631eb to your computer and use it in GitHub Desktop.
Save ChenLiZhan/9f5c9d1611afe38dff480e46554631eb to your computer and use it in GitHub Desktop.
S3 Bucket Policy for Hosting static website
{
"Version": "2008-10-17",
"Id": "b2cc31d0-cc91-4285-a658-473099d2c867",
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::BUCKET_NAME/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment