From 203d5a19234d5343d8ce962ff3ba105109aa9113 Mon Sep 17 00:00:00 2001 From: bruzzechesse Date: Wed, 15 May 2024 14:28:27 +0200 Subject: [PATCH] small fixes --- modules/alloydb/outputs.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/alloydb/outputs.tf b/modules/alloydb/outputs.tf index 458200a222..e3f9da1fce 100644 --- a/modules/alloydb/outputs.tf +++ b/modules/alloydb/outputs.tf @@ -68,12 +68,12 @@ output "names" { output "secondary_id" { description = "Fully qualified primary instance id." - value = var.cross_region_replication.enabled ? google_alloydb_instance.secondary.id : null + value = var.cross_region_replication.enabled ? google_alloydb_instance.secondary[0].id : null } output "secondary_ip" { description = "IP address of the primary instance." - value = var.cross_region_replication.enabled ? google_alloydb_instance.secondary.ip_address : null + value = var.cross_region_replication.enabled ? google_alloydb_instance.secondary[0].ip_address : null } output "user_passwords" {