From 1de42be0495ba72c253c6767bbb526b2ae192b04 Mon Sep 17 00:00:00 2001 From: Casper Thomas Date: Fri, 30 Apr 2021 19:59:19 -0400 Subject: [PATCH] add ignore changes --- main.tf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 23868a5..9d8cd10 100644 --- a/main.tf +++ b/main.tf @@ -13,7 +13,7 @@ resource "aws_cloudfront_distribution" "cf_distribution" { origin_id = o.origin_id origin_path = o.origin_path origin_access_identity = o.origin_access_identity - }, try({custom_headers = o.custom_headers}, {}))] + }, try({ custom_headers = o.custom_headers }, {}))] content { domain_name = origin.value.domain_name origin_id = origin.value.origin_id @@ -205,4 +205,8 @@ resource "aws_cloudfront_distribution" "cf_distribution" { web_acl_id = var.waf_web_acl_id tags = var.tags + + lifecycle { + ignore_changes = [default_cache_behavior[0].lambda_function_association, web_acl_id] + } }