Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ccabanero/8020822 to your computer and use it in GitHub Desktop.
Save ccabanero/8020822 to your computer and use it in GitHub Desktop.
AWS - S3 bucket policy for using to host static web pages.
{
"Version":"2008-10-17",
"Statement":[{
"Sid":"Allow Public Access to All Objects",
"Effect":"Allow",
"Principal": {
"AWS": "*"
},
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::example.com/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment