From 66f584be3a0d8a68b0afffc429e972ed55a7f8a3 Mon Sep 17 00:00:00 2001 From: jksprattler Date: Wed, 27 Nov 2024 15:20:00 -0600 Subject: [PATCH] use key for sa --- cloud_Azure/terraform/module/storage_account.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud_Azure/terraform/module/storage_account.tf b/cloud_Azure/terraform/module/storage_account.tf index d4feb88..fe87b98 100644 --- a/cloud_Azure/terraform/module/storage_account.tf +++ b/cloud_Azure/terraform/module/storage_account.tf @@ -13,8 +13,8 @@ locals { resource "azurerm_storage_account" "logs_storage_account" { for_each = { for nsg in local.flat_nsgs : nsg.key => nsg.value } - # generate storage account per nsg per rg - name = local.generated_storage_account_names[each.value] + # generate storage account per nsg(s) in each rg + name = local.generated_storage_account_names[each.key] resource_group_name = each.value.rg location = var.location account_tier = "Standard"