Skip to content

Commit

Permalink
Update managed rule group names unique
Browse files Browse the repository at this point in the history
  • Loading branch information
olamide committed Mar 12, 2024
1 parent ec2621e commit 42870c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/waf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ resource "aws_wafv2_web_acl" "main" {
dynamic "rule" {
for_each = var.aws_managed_rule_groups
content {
name = rule.value["name"]
name = "${rule.value["name"]}-${rule.key}"
priority = rule.value["priority"]

dynamic "override_action" {
Expand All @@ -127,7 +127,7 @@ resource "aws_wafv2_web_acl" "main" {
}
statement {
managed_rule_group_statement {
name = "${rule.value["name"]}-${rule.key}"
name = rule.value["name"]
vendor_name = "AWS"

dynamic "scope_down_statement" {
Expand Down

0 comments on commit 42870c6

Please sign in to comment.