Skip to content

Instantly share code, notes, and snippets.

@fidiego
Last active October 24, 2015 15:49
Show Gist options
  • Save fidiego/20a27f6dd9ed4210e4d9 to your computer and use it in GitHub Desktop.
Save fidiego/20a27f6dd9ed4210e4d9 to your computer and use it in GitHub Desktop.
S3 bucket policy for static site hosting
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::${www.bucketname.com}/*"
}
]
}
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": "arn:aws:s3:::${www.bucketname.com}/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment