i have a shared-vpc-host project which hosts 1 vpc per env: dev, stg prd.
all of the subnets from the host project are getting shared with all service projects.
I only want dev subnets shared with dev service projects, so on and so forth.
Expected behavior
for the platform_dev project i would expect that only the dev subnets get shared with it.
Observed behavior
instead I see that all subnets in the vpc host project are getting shared with the vpc service project. this happens for all of the service projects. please look carefully at the subnet names and you will observe those with prd & stg in the name rather than just dev in the name:
Kols-MBP:gcp-org-mgmt kolratner$ terraform version
Terraform v1.5.7
on darwin_arm64
+ provider registry.terraform.io/hashicorp/google v5.5.0
+ provider registry.terraform.io/hashicorp/google-beta v5.5.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.23.0
+ provider registry.terraform.io/hashicorp/null v3.2.1
+ provider registry.terraform.io/hashicorp/random v3.5.1
+ provider registry.terraform.io/hashicorp/time v0.9.1
Your version of Terraform is out of date! The latest version
is 1.6.5. You can update by downloading from https://www.terraform.io/downloads.html
TL;DR
i have a shared-vpc-host project which hosts 1 vpc per env: dev, stg prd.
all of the subnets from the host project are getting shared with all service projects.
I only want dev subnets shared with dev service projects, so on and so forth.
Expected behavior
for the platform_dev project i would expect that only the dev subnets get shared with it.
Observed behavior
instead I see that all subnets in the vpc host project are getting shared with the vpc service project. this happens for all of the service projects. please look carefully at the subnet names and you will observe those with prd & stg in the name rather than just dev in the name:
Terraform Configuration
Terraform Version
Additional information
No response