From 75f9f0494c2a17b6d53fb265b3a4c77490b2914b Mon Sep 17 00:00:00 2001 From: Morgante Pell Date: Fri, 31 Jan 2020 10:36:58 -0500 Subject: [PATCH] fix: Make project_id output dependent on shared_vpc host enablement (#150) --- modules/vpc/outputs.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/vpc/outputs.tf b/modules/vpc/outputs.tf index 8133169d..2b8a30a6 100644 --- a/modules/vpc/outputs.tf +++ b/modules/vpc/outputs.tf @@ -30,6 +30,6 @@ output "network_self_link" { } output "project_id" { - value = var.project_id + value = var.shared_vpc_host ? coalesce(google_compute_shared_vpc_host_project.shared_vpc_host.*.project...) : google_compute_network.network.project description = "VPC project id" }