Skip to content

Instantly share code, notes, and snippets.

@4lun
Created July 16, 2016 20:02
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 4lun/a70f55c801e2c92a8a6909ebcb2051ca to your computer and use it in GitHub Desktop.
Save 4lun/a70f55c801e2c92a8a6909ebcb2051ca to your computer and use it in GitHub Desktop.
Bucket policy for directly serving a static site from a bucket on S3
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bucket.com/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment