Skip to content

Commit

Permalink
fix(infra): update validation regex
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Sep 27, 2024
1 parent 84515d4 commit ceb601b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/cdn/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ variable "ngwaf_site_name" {
description = "Site SHORT name for NGWAF"

validation {
condition = can(regex("^(test|stage|prod)$", var.ngwaf_site_name))
error_message = "'ngwaf_site_name' must be one of the following: test, stage, or prod"
condition = can(regex("^(pythondotorg-test|pythondotorg-prod)$", var.ngwaf_site_name))
error_message = "'ngwaf_site_name' must be one of the following: pythondotorg-test, or pythondotorg-prod"
}
}
variable "ngwaf_email" {
Expand Down

0 comments on commit ceb601b

Please sign in to comment.