Skip to content

Commit

Permalink
BAU: Adding lifecycle ignore for header var
Browse files Browse the repository at this point in the history
  • Loading branch information
pskushwaha1 committed Jan 17, 2025
1 parent 9e76af7 commit 6dfcb0a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/terraform/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ resource "aws_cloudformation_stack" "cloudfront" {
StandardLoggingEnabled = true
LogDestination = var.cloudfront_WafAcl_Logdestination
}
# Ignoring OriginCloakingHeader & PreviousOriginCloakingHeader parameter changes until it is actually changed.
# Cloud-front Template has set NoEcho on these parameter so terraform continually detects changes though there is no change in value read via secret manager store
# Imp Note : We will need to remove the below lifecycle if we want to change the Header string in CloudFront custom origin.
lifecycle {
ignore_changes = [parameters["OriginCloakingHeader"], parameters["PreviousOriginCloakingHeader"]]
}

}

resource "aws_cloudformation_stack" "cloudfront-monitoring" {
Expand Down

0 comments on commit 6dfcb0a

Please sign in to comment.