Skip to content

Commit

Permalink
Update kms.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
mynampatinaveen authored Sep 9, 2024
1 parent a9f437d commit 4b0aa01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/products/static-site/kms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ resource "aws_kms_key_policy" "static_site_kms_policy" {
Id = "static_site_kms_policy"
Statement = [
{
Sid = "CloudFrontServiceKmsPolicy"
Action = [
"kms:Decrypt",
"kms:Encrypt",
Expand All @@ -22,12 +21,13 @@ resource "aws_kms_key_policy" "static_site_kms_policy" {
identifiers = ["cloudfront.amazonaws.com"]
}
Resource = ["*"]
Sid = "CloudFrontServiceKmsPolicy"
condition = {
test = "StringEquals"
variable = "aws:SourceArn"
values = [aws_cloudfront_distribution.static_site_distribution.arn]
}
}
},
]
})
}
Expand Down

0 comments on commit 4b0aa01

Please sign in to comment.