From 1bd734f9d9f3fe580e7757e14ebec4b0763521c9 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/static_ips/main.tf | 7 ++++--- 2 files changed, 10 insertions(+), 7 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/static_ips/main.tf b/examples/umig/static_ips/main.tf index d0ddce7d..391b66a4 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" {