We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc476e9 commit 751c259Copy full SHA for 751c259
cloud_Azure/terraform/module/storage_account.tf
@@ -6,7 +6,7 @@ resource "random_id" "storage_account_id" {
6
# Each output name is concatenation of the exporter name and a random id, adjusted to naming restrictions
7
locals {
8
truncated_name = substr(var.name, 0, 12)
9
- _names = [for name in var.resource_group_names : "${truncated_name}${random_id.storage_account_id.hex}"]
+ _names = [for name in var.resource_group_names : "${local.truncated_name}${random_id.storage_account_id.hex}"]
10
_lowercase_names = [for name in local._names : lower(name)]
11
_alphanum_lowercase_names = [for name in local._lowercase_names : join("", regexall("[[:alnum:]]+", name))]
12
generated_storage_account_names = [for name in local._alphanum_lowercase_names : substr(name, 0, 24)]
0 commit comments