Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(CI): add subnetwork_project #430

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading