Skip to content

Instantly share code, notes, and snippets.

@monokrome
Created June 4, 2012 05:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monokrome/2866543 to your computer and use it in GitHub Desktop.
Save monokrome/2866543 to your computer and use it in GitHub Desktop.
Allowing anonymous access to files on S3.
{
"Id": "Policy<ENTER_RANDOM_NUMBERS_HERE>",
"Statement": [
{
"Sid": "Stmt<ENTER_RANDOM_NUMBERS_HERE>",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::your.bucket.name/*",
"Principal": {
"AWS": [
"*"
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment