Skip to content

Commit

Permalink
fix: edited aws_wafv2_web_acl_association in main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnagpal committed Oct 3, 2023
1 parent 908964d commit 3f63388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1196,10 +1196,10 @@ resource "aws_wafv2_web_acl" "main" {
# WAFv2 web acl association with ALB
#####
resource "aws_wafv2_web_acl_association" "main" {
count = var.enable && var.waf_enabled && var.web_acl_association && length(var.resource_arn_list) > 0 ? 1 : 0
count = var.waf_enabled && var.web_acl_association && length(var.resource_arn_list) == 0 ? 1 : 0

resource_arn = var.resource_arn
web_acl_arn = join("", aws_wafv2_web_acl.main[*].arn)
web_acl_arn = join("", aws_wafv2_web_acl.main.*.arn)

depends_on = [aws_wafv2_web_acl.main]
}
Expand Down

0 comments on commit 3f63388

Please sign in to comment.