From 683ae072382c03f8b032944e539e9fa8601bad1f Mon Sep 17 00:00:00 2001 From: Olivier Cervello Date: Fri, 3 Apr 2020 00:14:47 +0200 Subject: [PATCH] fix: Resolve error with destroy and shared VPC host config (#168) * Fix #163 * Update outputs.tf --- 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 205aabf9..19c9e83e 100644 --- a/modules/vpc/outputs.tf +++ b/modules/vpc/outputs.tf @@ -30,6 +30,6 @@ output "network_self_link" { } output "project_id" { - value = var.shared_vpc_host ? coalesce(flatten([google_compute_shared_vpc_host_project.shared_vpc_host.*.project])...) : google_compute_network.network.project + value = var.shared_vpc_host ? google_compute_shared_vpc_host_project.shared_vpc_host.*.project[0] : google_compute_network.network.project description = "VPC project id" }