Skip to content

Instantly share code, notes, and snippets.

@jcbagtas
Last active March 24, 2018 05:29
Show Gist options
  • Save jcbagtas/8bea2a046a1b88a0b609a1136b5a566c to your computer and use it in GitHub Desktop.
Save jcbagtas/8bea2a046a1b88a0b609a1136b5a566c to your computer and use it in GitHub Desktop.
AWS Bucket Policy for Public Buckets
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:*",
"Resource": "arn:aws:s3:::yourbucket.domainname.com/*"
}
]
}
@jcbagtas
Copy link
Author

Just put this as your bucket policy.

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