Skip to content

Commit

Permalink
CCL-439 - static site invalidate CF cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ukho-cfreeman committed Sep 6, 2024
1 parent 8a4daa5 commit 385f2cf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/products/static-site/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,15 @@ data "aws_iam_policy_document" "static_site_policy_document" {
aws_kms_key.static_site_kms.arn,
]
}
statement {
sid = "Cloudfront"

actions = [
"cloudfront:CreateInvalidation"
]

resources = [
aws_cloudfront_distribution.static_site_distribution.arn,
]
}
}

0 comments on commit 385f2cf

Please sign in to comment.