Skip to content

Commit

Permalink
change _names value in locals
Browse files Browse the repository at this point in the history
  • Loading branch information
jksprattler committed Nov 28, 2024
1 parent bb4b9a8 commit 531cd08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud_Azure/terraform/module/storage_account.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Prepare names that meet Azure Storage Account naming restrictions (only alphanum letters, max 24 length, Azure-wide unique)
# Each output name is concatenation of Resource Group name and Subscription ID, adjusted to naming restrictions
locals {
_names = [for name in var.resource_group_names : "${name}${var.subscription_id}"]
_names = [for nsg in local.flat_nsgs : "${nsg.name}${var.subscription_id}"]
_lowercase_names = [for name in local._names : lower(name)]
_alphanum_lowercase_names = [for name in local._lowercase_names : join("", regexall("[[:alnum:]]+", name))]
generated_storage_account_names = [for name in local._alphanum_lowercase_names : substr(name, 0, 24)]
Expand Down

0 comments on commit 531cd08

Please sign in to comment.