From 4bb1786cefa7ff49f0f93a74b93f60989cfda7a1 Mon Sep 17 00:00:00 2001 From: mnasr-moj Date: Tue, 31 Dec 2024 12:44:12 +0000 Subject: [PATCH] changing WAFv2 reference to arn rather than id --- terraform/environments/apex/cloudfront.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/environments/apex/cloudfront.tf b/terraform/environments/apex/cloudfront.tf index b584ab2e06d..07bbdd15fc5 100644 --- a/terraform/environments/apex/cloudfront.tf +++ b/terraform/environments/apex/cloudfront.tf @@ -250,7 +250,7 @@ resource "aws_cloudfront_distribution" "external" { prefix = local.application_name } - web_acl_id = aws_wafv2_web_acl.waf_acl.id + web_acl_id = aws_wafv2_web_acl.waf_acl.arn # This is a required block in Terraform. Here we are having no geo restrictions. restrictions {