Skip to content

Instantly share code, notes, and snippets.

@lucasjhall
Created November 19, 2018 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasjhall/bddb6d14a2845db5697ced0920e0e38f to your computer and use it in GitHub Desktop.
Save lucasjhall/bddb6d14a2845db5697ced0920e0e38f to your computer and use it in GitHub Desktop.
{
"Version": "2008-10-17",
"Id": "PolicyForCloudFrontPrivateContent",
"Statement": [
{
"Sid": "1",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity ${yourIdentity}"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::${bucketName}/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment