From 6b761d0b8228d7b64860db46370f23d45a61e4da Mon Sep 17 00:00:00 2001 From: Andrew Peabody Date: Thu, 19 Sep 2024 10:28:00 -0700 Subject: [PATCH] chore: add subnetwork_project --- examples/compute_instance/simple/main.tf | 10 ++++++---- examples/umig/named_ports/main.tf | 1 + examples/umig/simple/main.tf | 8 +++++--- examples/umig/static_ips/main.tf | 8 +++++--- 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/examples/compute_instance/simple/main.tf b/examples/compute_instance/simple/main.tf index cdf21279..4c38f056 100644 --- a/examples/compute_instance/simple/main.tf +++ b/examples/compute_instance/simple/main.tf @@ -18,10 +18,11 @@ module "instance_template" { source = "terraform-google-modules/vm/google//modules/instance_template" version = "~> 11.0" - region = var.region - project_id = var.project_id - subnetwork = var.subnetwork - service_account = var.service_account + region = var.region + project_id = var.project_id + subnetwork = var.subnetwork + subnetwork_project = var.project_id + service_account = var.service_account } module "compute_instance" { @@ -31,6 +32,7 @@ module "compute_instance" { region = var.region zone = var.zone subnetwork = var.subnetwork + subnetwork_project = var.project_id num_instances = var.num_instances hostname = "instance-simple" instance_template = module.instance_template.self_link diff --git a/examples/umig/named_ports/main.tf b/examples/umig/named_ports/main.tf index b28cfc3f..1885d5e7 100644 --- a/examples/umig/named_ports/main.tf +++ b/examples/umig/named_ports/main.tf @@ -35,6 +35,7 @@ module "umig" { project_id = var.project_id subnetwork = var.subnetwork + subnetwork_project = var.project_id num_instances = var.num_instances hostname = "umig-named-ports" instance_template = module.instance_template.self_link diff --git a/examples/umig/simple/main.tf b/examples/umig/simple/main.tf index 6024202b..e782bec6 100644 --- a/examples/umig/simple/main.tf +++ b/examples/umig/simple/main.tf @@ -24,9 +24,10 @@ module "instance_template" { source = "terraform-google-modules/vm/google//modules/instance_template" version = "~> 11.0" - project_id = var.project_id - subnetwork = var.subnetwork - service_account = var.service_account + project_id = var.project_id + subnetwork = var.subnetwork + subnetwork_project = var.project_id + service_account = var.service_account } module "umig" { @@ -35,6 +36,7 @@ module "umig" { project_id = var.project_id subnetwork = var.subnetwork + subnetwork_project = var.project_id num_instances = var.num_instances hostname = "umig-simple" instance_template = module.instance_template.self_link diff --git a/examples/umig/static_ips/main.tf b/examples/umig/static_ips/main.tf index d0ddce7d..674beeec 100644 --- a/examples/umig/static_ips/main.tf +++ b/examples/umig/static_ips/main.tf @@ -24,9 +24,10 @@ module "instance_template" { source = "terraform-google-modules/vm/google//modules/instance_template" version = "~> 11.0" - project_id = var.project_id - subnetwork = var.subnetwork - service_account = var.service_account + project_id = var.project_id + subnetwork = var.subnetwork + subnetwork_project = var.project_id + service_account = var.service_account } module "umig" { @@ -35,6 +36,7 @@ module "umig" { project_id = var.project_id subnetwork = var.subnetwork + subnetwork_project = var.project_id num_instances = var.num_instances hostname = "umig-static-ips" instance_template = module.instance_template.self_link