Created
July 28, 2022 13:52
-
-
Save hugomota/a4100fddac35498ca92a2e814f6f7bf4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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":"PublicReadGetObject", | |
"Effect":"Deny", | |
"Principal":"*", | |
"Action":[ | |
"s3:GetObject", | |
"s3:PutObject" | |
], | |
"Resource":"arn:aws:s3:::{bucket_name}/*", | |
"Condition":{ | |
"Bool":{ | |
"aws:SecureTransport":"false" | |
} | |
} | |
}, | |
{ | |
"Effect":"Allow", | |
"Principal":{ | |
"AWS":"arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity E1K1EAJVVK5H0F" | |
}, | |
"Action":"s3:GetObject", | |
"Resource":"arn:aws:s3:::{bucket_name}/*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment