Skip to content

Commit

Permalink
use key for sa
Browse files Browse the repository at this point in the history
  • Loading branch information
jksprattler committed Nov 27, 2024
1 parent 98be850 commit 66f584b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloud_Azure/terraform/module/storage_account.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 66f584b

Please sign in to comment.