From 63f250288b6c1d6d5aa8846fc11f1c871cd324bb Mon Sep 17 00:00:00 2001 From: Jamil Date: Thu, 9 Jan 2025 00:19:45 -0800 Subject: [PATCH] fix(infra): don't deploy to me-central2 (#7711) ``` Error: Error creating Subnetwork: googleapi: Error 403: Permission denied on 'locations/me-central2' (or it may not exist). Details: [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "domain": "googleapis.com", "metadatas": { "consumer": "projects/firezone-staging", "location": "me-central2", "service": "" }, "reason": "LOCATION_POLICY_VIOLATED" }, { "@type": "type.googleapis.com/google.rpc.LocalizedMessage", "locale": "en-US", "message": "Permission denied on 'locations/me-central2' (or it may not exist)." }, { "@type": "type.googleapis.com/google.rpc.Help", "links": [ { "description": "Access to the region is unavailable. Please contact our sales team at https://cloud.google.com/contact for further assistance." } ] } ] , forbidden ``` --- terraform/environments/production/relays.tf | 14 ++++++++------ terraform/environments/staging/relays.tf | 14 ++++++++------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/terraform/environments/production/relays.tf b/terraform/environments/production/relays.tf index 8bdf81a71..76cc9f424 100644 --- a/terraform/environments/production/relays.tf +++ b/terraform/environments/production/relays.tf @@ -158,12 +158,14 @@ module "relays" { replicas = 1 zones = ["me-central1-a"] } - "me-central2" = { - cidr_range = "10.154.1.0/24" - type = "e2-micro" - replicas = 1 - zones = ["me-central2-a"] - } + # Fails with: + # Access to the region is unavailable. Please contact our sales team at https://cloud.google.com/contact for further assistance." + # "me-central2" = { + # cidr_range = "10.154.1.0/24" + # type = "e2-micro" + # replicas = 1 + # zones = ["me-central2-a"] + # } "me-west1" = { cidr_range = "10.155.1.0/24" type = "e2-micro" diff --git a/terraform/environments/staging/relays.tf b/terraform/environments/staging/relays.tf index d0f479cbd..2c739ea6c 100644 --- a/terraform/environments/staging/relays.tf +++ b/terraform/environments/staging/relays.tf @@ -153,12 +153,14 @@ module "relays" { replicas = 1 zones = ["me-central1-a"] } - "me-central2" = { - cidr_range = "10.154.1.0/24" - type = "e2-micro" - replicas = 1 - zones = ["me-central2-a"] - } + # Fails with: + # Access to the region is unavailable. Please contact our sales team at https://cloud.google.com/contact for further assistance." + # "me-central2" = { + # cidr_range = "10.154.1.0/24" + # type = "e2-micro" + # replicas = 1 + # zones = ["me-central2-a"] + # } "me-west1" = { cidr_range = "10.155.1.0/24" type = "e2-micro"