Skip to content

Instantly share code, notes, and snippets.

@banyudu
Created March 22, 2018 11:39
Show Gist options
  • Save banyudu/0ea2f1eadde319ac0030de7807ac79d0 to your computer and use it in GitHub Desktop.
Save banyudu/0ea2f1eadde319ac0030de7807ac79d0 to your computer and use it in GitHub Desktop.
{
"Version": "2008-10-17",
"Id": "http better policy",
"Statement": [
{
"Sid": "readonly policy",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::your-bucket/*"
}
]
}
@banyudu
Copy link
Author

banyudu commented Mar 22, 2018

Copy this policy and replace "your-bucket" with your actual bucket name.

Copied from https://stackoverflow.com/questions/7420209/amazon-s3-permission-problem-how-to-set-permissions-for-all-files-at-once

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment