From f0e264924abec3a679f5833b1b246082c0740322 Mon Sep 17 00:00:00 2001 From: jksprattler Date: Wed, 27 Nov 2024 16:32:35 -0600 Subject: [PATCH] simplify azurerm_storage_account name --- 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 7318552..e4ac296 100644 --- a/cloud_Azure/terraform/module/storage_account.tf +++ b/cloud_Azure/terraform/module/storage_account.tf @@ -19,7 +19,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 = substr("st" + md5(each.key), 0, 24) + name = substr("sa" + md5(tostring(each.key)), 0, 24) resource_group_name = each.value.rg location = var.location account_tier = "Standard"