Skip to content

Commit

Permalink
fix subnetwork_project validation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-cit committed Nov 8, 2024
1 parent 824ea36 commit e7009c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 5-app-infra/modules/env_base/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ locals {

env_project_id = local.env_project_ids[var.project_suffix]
subnetwork_self_link = local.env_project_subnets[var.project_suffix]
subnetwork_project = element(split("/", local.subnetwork_self_link), index(split("/", local.subnetwork_self_link), "projects") + 1, )
resource_manager_tags = local.env_project_resource_manager_tags[var.project_suffix]
}

Expand Down Expand Up @@ -84,6 +85,7 @@ module "compute_instance" {

region = var.region
subnetwork = local.subnetwork_self_link
subnetwork_project = local.subnetwork_project
num_instances = var.num_instances
hostname = var.hostname
instance_template = module.instance_template.self_link
Expand Down

0 comments on commit e7009c6

Please sign in to comment.