Last active
September 10, 2019 06:39
-
-
Save ccabanero/8195878 to your computer and use it in GitHub Desktop.
AWS - S3 Public Bucket Policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2008-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowPublicRead", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::MYBUCKETNAME/*" | |
} | |
] | |
} | |
{ | |
"Version":"2008-10-17", | |
"Statement":[{ | |
"Sid":"Allow Public Access to All Objects", | |
"Effect":"Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action":["s3:GetObject"], | |
"Resource":["arn:aws:s3:::example.com/*" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment