From 43e830a0719ee31a42bed666d8392afc4e62b62f Mon Sep 17 00:00:00 2001 From: jksprattler Date: Wed, 27 Nov 2024 15:23:23 -0600 Subject: [PATCH] for_each stuff --- cloud_Azure/terraform/module/storage_account.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud_Azure/terraform/module/storage_account.tf b/cloud_Azure/terraform/module/storage_account.tf index fe87b98..a423591 100644 --- a/cloud_Azure/terraform/module/storage_account.tf +++ b/cloud_Azure/terraform/module/storage_account.tf @@ -14,7 +14,7 @@ resource "azurerm_storage_account" "logs_storage_account" { for_each = { for nsg in local.flat_nsgs : nsg.key => nsg.value } # generate storage account per nsg(s) in each rg - name = local.generated_storage_account_names[each.key] + name = local.generated_storage_account_names[each.value.id] resource_group_name = each.value.rg location = var.location account_tier = "Standard"