Skip to content

Instantly share code, notes, and snippets.

@andreyvit
Created June 5, 2012 16:00
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 andreyvit/2875931 to your computer and use it in GitHub Desktop.
Save andreyvit/2875931 to your computer and use it in GitHub Desktop.
S3 bucket policy to enable everyone to access a certain bucket's file
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::www.domain-name.com/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment