From ed4900f66d6e601fe4789f85b4990f12a3e4431b Mon Sep 17 00:00:00 2001 From: Artem Date: Wed, 22 Nov 2023 11:11:52 +0100 Subject: [PATCH] Add WAF Custom_Policy enabled --- .../networking/application_gateway_waf_policies/waf_policy.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/networking/application_gateway_waf_policies/waf_policy.tf b/modules/networking/application_gateway_waf_policies/waf_policy.tf index ab0da3fa8a..207b5a5240 100644 --- a/modules/networking/application_gateway_waf_policies/waf_policy.tf +++ b/modules/networking/application_gateway_waf_policies/waf_policy.tf @@ -8,6 +8,7 @@ resource "azurerm_web_application_firewall_policy" "wafpolicy" { dynamic "custom_rules" { for_each = try(var.settings.custom_rules, {}) content { + enabled = try(custom_rules.value.enabled, true) name = custom_rules.value.name priority = custom_rules.value.priority rule_type = custom_rules.value.rule_type