diff --git a/aws/common/waf.tf b/aws/common/waf.tf index 51d56c53b..c3638c453 100644 --- a/aws/common/waf.tf +++ b/aws/common/waf.tf @@ -18,7 +18,7 @@ resource "aws_wafv2_regex_pattern_set" "re_api" { scope = "REGIONAL" regular_expression { - regex_string = var.env == "production" ? "/_status.*|/api-key.*|/complaint.*|/email-branding.*|/events.*|/inbound-number.*|/invite.*|/letter-branding.*|/letters.*" : "/_debug|/_status.*|/api-key.*|/complaint.*|/email-branding.*|/events.*|/inbound-number.*|/invite.*|/letter-branding.*|/letters.*" + regex_string = var.env == "production" ? "/_status.*|/api-key.*|/complaint.*|/email-branding.*|/events.*|/inbound-number.*|/invite.*|/letter-branding.*|/letters.*" : "/_debug|/_status.*|/api-key.*|/complaint.*|/email-branding.*|/events.*|/inbound-number.*|/invite.*|/letter-branding.*|/letters.*|/template-category.*" } regular_expression { @@ -182,4 +182,4 @@ resource "aws_wafv2_regex_pattern_set" "notification_base_url" { tags = { CostCenter = "notification-canada-ca-${var.env}" } -} \ No newline at end of file +}