Skip to content

Commit

Permalink
chore(CI): add subnetwork_project (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Sep 20, 2024
1 parent 2f8ca3e commit bf8c7cb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 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/named_ports/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions examples/umig/simple/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 All @@ -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
Expand Down
8 changes: 5 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 All @@ -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
Expand Down

0 comments on commit bf8c7cb

Please sign in to comment.