Skip to content

Instantly share code, notes, and snippets.

@chusiang
Last active January 30, 2024 13:15
Show Gist options
  • Save chusiang/67813360d99ed11766eb9d086dda7fc6 to your computer and use it in GitHub Desktop.
Save chusiang/67813360d99ed11766eb9d086dda7fc6 to your computer and use it in GitHub Desktop.
AWS IAM policy of CloudFront Create Invalidation
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::MyBucketName"
},
{
"Action": [
"cloudfront:CreateInvalidation",
"cloudfront:GetDistribution",
"cloudfront:GetStreamingDistribution",
"cloudfront:GetDistributionConfig",
"cloudfront:GetInvalidation",
"cloudfront:ListInvalidations",
"cloudfront:ListStreamingDistributions",
"cloudfront:ListDistributions"
],
"Effect": "Allow",
"Resource": "*"
}
]
}