diff --git a/aws/common/waf.tf b/aws/common/waf.tf index e4a3ea60b..e251dd090 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.*|/template-category.*" : "/_debug|/_status.*|/api-key.*|/complaint.*|/email-branding.*|/events.*|/inbound-number.*|/invite.*|/letter-branding.*|/letters.*|/template-category.*" + regex_string = var.env == "production" ? "/_status.*|/api-key.*|/complaint.*|/email-branding.*|/events.*|/inbound-number.*|/invite.*|/letter-branding.*|/letters.*|/template-category.*" : "/_debug|/_status.*|/api-key.*|/complaint.*|/email-branding.*|/events.*|/inbound-number.*|/invite.*|/letter-branding.*|/letters.*|/template-category.*|/cypress.*" } regular_expression {