Skip to content

Commit

Permalink
chore: add subnetwork_project
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody committed Sep 19, 2024
1 parent 2f8ca3e commit 0ec651e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
10 changes: 6 additions & 4 deletions examples/compute_instance/simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/umig/simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module "instance_template" {

project_id = var.project_id
subnetwork = var.subnetwork
subnetwork_project = var.project_id
service_account = var.service_account
}

Expand Down
7 changes: 4 additions & 3 deletions examples/umig/static_ips/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 0ec651e

Please sign in to comment.