From 9b370c351e842fb48dd5ac820a0c707afc8863ec Mon Sep 17 00:00:00 2001 From: Philipp Korth Date: Fri, 11 Feb 2022 11:28:03 +0100 Subject: [PATCH] Switches back to map --- simphera-instances.tf | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/simphera-instances.tf b/simphera-instances.tf index 1284a5a..e663aac 100644 --- a/simphera-instances.tf +++ b/simphera-instances.tf @@ -54,14 +54,21 @@ output "minio_storage_passwords" { } output "couchbackup_storage_names" { - value = module.simphera_instance[*].couchbackup_storage_name + value = tomap({ + for name, instance in module.simphera_instance : name => instance.couchbackup_storage_name + }) } output "couchbackup_storage_account_keys" { - value = module.simphera_instance[*].couchbackup_storage_account_key + value = tomap({ + for name, instance in module.simphera_instance : name => instance.couchbackup_storage_account_key + }) sensitive = true + } output "couchbackup_storage_share_names" { - value = module.simphera_instance[*].couchbackup_storage_share_name + value = tomap({ + for name, instance in module.simphera_instance : name => instance.couchbackup_storage_share_name + }) }