From 5292e44365df903364e37d6012e95a28609e9b2b Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 4 Oct 2024 11:16:39 -0300 Subject: [PATCH] chore(WAF): allow `/cypress/*` in staging, but not in prod (#1560) --- aws/common/waf.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {