Skip to content

Instantly share code, notes, and snippets.

@flackjap
Created October 18, 2020 12:44
Show Gist options
  • Save flackjap/9790c0a27375f791b9ed140a15cbb05e to your computer and use it in GitHub Desktop.
Save flackjap/9790c0a27375f791b9ed140a15cbb05e to your computer and use it in GitHub Desktop.
CloudFront Origin Access Bucket Policy
{
"Version": "2008-10-17",
"Id": "PolicyForCloudFrontPrivateContent",
"Statement": [
{
"Sid": "1",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity E336V70R8E3QKE"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::my-s3-001/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment