Closed mromascanu123 closed 2 months ago
reverify after pulling also a related fix in https://github.com/terraform-google-modules/terraform-example-foundation/pull/1181
verify as well 3-networks-hub-and-spoke
locals {
env = "common"
environment_code = "c"
bgp_asn_number = var.enable_partner_interconnect ? "16550" : "64514"
dns_bgp_asn_number = var.enable_partner_interconnect ? "16550" : var.bgp_asn_dns
default_region1 = "us-west1"
default_region2 = "us-central1"
TL;DR
Deployed with default_region = "northamerica-northeast2" in 0-bootstrap / terraform.auto.tfvars. Despite this (too many to enumerate) resources still deployed in us-central1 and us-west1. This is caused by module defaults (set in variables.tf) not being overriden when modules invoked from above
Expected behavior
Everything should be deployed in the specified region (or regions). However in terraform.auto.tfvars in 0-bootstrap we can specify a single region - while the deployment by default we specify a single region. Should have the deployment deploy in a single region, or 2 regions based exclusively on what was specified in bootstrap
Observed behavior
Here are a few examples![image](https://github.com/terraform-google-modules/terraform-example-foundation/assets/162719251/9e167173-cb5e-414a-b4f6-9094d71351a6)
Terraform Configuration
Terraform Version
Additional information
Please fix region parameterization, having resources in multiple regions will make costs explode not to mention regulatory issues with data localization