Skip to content

Commit

Permalink
actually let Actions invalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
beggers committed Mar 4, 2024
1 parent db1c6c0 commit 4b64910
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions terraform/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ data "aws_iam_policy_document" "invalidate_cloudfront_cache" {
"cloudfront:CreateInvalidation",
]
effect = "Allow"
condition {
test = "ArnLike"
variable = "aws:SourceArn"
values = [
aws_iam_role.github_actions.arn
]
}
resources = [
aws_cloudfront_distribution.main.arn
]
Expand Down

0 comments on commit 4b64910

Please sign in to comment.