Skip to content

Commit bf8c7cb

Browse files
authored
chore(CI): add subnetwork_project (#430)
1 parent 2f8ca3e commit bf8c7cb

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

examples/compute_instance/simple/main.tf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ module "instance_template" {
1818
source = "terraform-google-modules/vm/google//modules/instance_template"
1919
version = "~> 11.0"
2020

21-
region = var.region
22-
project_id = var.project_id
23-
subnetwork = var.subnetwork
24-
service_account = var.service_account
21+
region = var.region
22+
project_id = var.project_id
23+
subnetwork = var.subnetwork
24+
subnetwork_project = var.project_id
25+
service_account = var.service_account
2526
}
2627

2728
module "compute_instance" {
@@ -31,6 +32,7 @@ module "compute_instance" {
3132
region = var.region
3233
zone = var.zone
3334
subnetwork = var.subnetwork
35+
subnetwork_project = var.project_id
3436
num_instances = var.num_instances
3537
hostname = "instance-simple"
3638
instance_template = module.instance_template.self_link

examples/umig/named_ports/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ module "umig" {
3535

3636
project_id = var.project_id
3737
subnetwork = var.subnetwork
38+
subnetwork_project = var.project_id
3839
num_instances = var.num_instances
3940
hostname = "umig-named-ports"
4041
instance_template = module.instance_template.self_link

examples/umig/simple/main.tf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ module "instance_template" {
2424
source = "terraform-google-modules/vm/google//modules/instance_template"
2525
version = "~> 11.0"
2626

27-
project_id = var.project_id
28-
subnetwork = var.subnetwork
29-
service_account = var.service_account
27+
project_id = var.project_id
28+
subnetwork = var.subnetwork
29+
subnetwork_project = var.project_id
30+
service_account = var.service_account
3031
}
3132

3233
module "umig" {
@@ -35,6 +36,7 @@ module "umig" {
3536

3637
project_id = var.project_id
3738
subnetwork = var.subnetwork
39+
subnetwork_project = var.project_id
3840
num_instances = var.num_instances
3941
hostname = "umig-simple"
4042
instance_template = module.instance_template.self_link

examples/umig/static_ips/main.tf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ module "instance_template" {
2424
source = "terraform-google-modules/vm/google//modules/instance_template"
2525
version = "~> 11.0"
2626

27-
project_id = var.project_id
28-
subnetwork = var.subnetwork
29-
service_account = var.service_account
27+
project_id = var.project_id
28+
subnetwork = var.subnetwork
29+
subnetwork_project = var.project_id
30+
service_account = var.service_account
3031
}
3132

3233
module "umig" {
@@ -35,6 +36,7 @@ module "umig" {
3536

3637
project_id = var.project_id
3738
subnetwork = var.subnetwork
39+
subnetwork_project = var.project_id
3840
num_instances = var.num_instances
3941
hostname = "umig-static-ips"
4042
instance_template = module.instance_template.self_link

0 commit comments

Comments
 (0)