From a3295ae73155e83599683d055d6444c6c0a16efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Niesiob=C4=99dzki?= Date: Fri, 24 May 2024 09:26:17 +0000 Subject: [PATCH] Add regional PSC addresses to output --- modules/net-address/outputs.tf | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/net-address/outputs.tf b/modules/net-address/outputs.tf index cf6641bd..95ab38b1 100644 --- a/modules/net-address/outputs.tf +++ b/modules/net-address/outputs.tf @@ -64,8 +64,14 @@ output "psa_addresses" { output "psc_addresses" { description = "Allocated internal addresses for PSC endpoints." - value = { - for address in google_compute_global_address.psc : - address.name => address - } + value = merge( + { + for address in google_compute_global_address.psc : + address.name => address + }, + { + for address in google_compute_address.psc : + address.name => address + } + ) }