Skip to content

Instantly share code, notes, and snippets.

@PaulRBerg
Created December 26, 2018 21:35
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 PaulRBerg/61e0c998f105fedb627fa66ff2c6aea6 to your computer and use it in GitHub Desktop.
Save PaulRBerg/61e0c998f105fedb627fa66ff2c6aea6 to your computer and use it in GitHub Desktop.
Sample policy for a static website hosted on S3
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "S3StaticWebsitePolicy",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::YOUR_DOMAIN.COM/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment