Skip to content

Commit

Permalink
chore(WAF): allow /cypress/* in staging, but not in prod (#1560)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleith authored Oct 4, 2024
1 parent 12e7f27 commit 5292e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/common/waf.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5292e44

Please sign in to comment.