Skip to content

Commit

Permalink
Merge pull request #45 from clouddrove/fix/ip_set_reference_statement…
Browse files Browse the repository at this point in the history
…_rules

fix: edited aws_wafv2_web_acl_association in main.tf
  • Loading branch information
d4kverma committed Oct 3, 2023
2 parents 908964d + 3f63388 commit 48c9900
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 48c9900

Please sign in to comment.