From 5f61ffb3cb03a4d0ddb02dde1a3085aa428aeb38 Mon Sep 17 00:00:00 2001 From: Brice Delvallee Date: Tue, 4 Feb 2020 19:47:00 +0200 Subject: [PATCH] fix: Resolve "Invalid expanding argument value" issue with the newer versions of terraform (#153) --- 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 2b8a30a6..205aabf9 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(google_compute_shared_vpc_host_project.shared_vpc_host.*.project...) : google_compute_network.network.project + value = var.shared_vpc_host ? coalesce(flatten([google_compute_shared_vpc_host_project.shared_vpc_host.*.project])...) : google_compute_network.network.project description = "VPC project id" }