From 07e083303e885145057bc7b895efeab06d5ce1cc Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Tue, 17 Sep 2024 12:45:49 -0500 Subject: [PATCH] chore: rename sites --- infra/cdn/variables.tf | 2 +- infra/main.tf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/cdn/variables.tf b/infra/cdn/variables.tf index ec0a11a83..44547fe37 100644 --- a/infra/cdn/variables.tf +++ b/infra/cdn/variables.tf @@ -62,7 +62,7 @@ variable "ngwaf_site_name" { description = "Site SHORT name for NGWAF" validation { - condition = can(regex("^(test|stage|prod)$", var.ngwaf_site_name)) + condition = can(regex("^(pythondotorg-test|pythondotorg-prod)$", var.ngwaf_site_name)) error_message = "'ngwaf_site_name' must be one of the following: test, stage, or prod" } } diff --git a/infra/main.tf b/infra/main.tf index 90c2ba9c5..0966d2d10 100644 --- a/infra/main.tf +++ b/infra/main.tf @@ -13,7 +13,7 @@ module "fastly_production" { fastly_header_token = var.FASTLY_HEADER_TOKEN s3_logging_keys = var.fastly_s3_logging - ngwaf_site_name = "prod" + ngwaf_site_name = "pythondotorg-prod" ngwaf_email = "infrastructure-staff@python.org" ngwaf_token = var.ngwaf_token activate_ngwaf_service = false @@ -35,7 +35,7 @@ module "fastly_staging" { fastly_header_token = var.FASTLY_HEADER_TOKEN s3_logging_keys = var.fastly_s3_logging - ngwaf_site_name = "test" + ngwaf_site_name = "pythondotorg-test" ngwaf_email = "infrastructure-staff@python.org" ngwaf_token = var.ngwaf_token activate_ngwaf_service = true