File tree 1 file changed +1
-1
lines changed
cloud_Azure/terraform/module
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ resource "random_id" "storage_account_id" {
6
6
# Each output name is concatenation of the exporter name truncated to 12 chars and a random id of 12 chars, adjusted to naming restrictions
7
7
locals {
8
8
truncated_name = substr (var. name , 0 , 12 )
9
- _names = [for name in var . resource_group_names : " ${ local . truncated_name } ${ random_id . storage_account_id [ idx ] . hex } " ]
9
+ _names = [for name in var . resource_group_names : " ${ local . truncated_name } ${ random_id . storage_account_id . hex } " ]
10
10
_lowercase_names = [for name in local . _names : lower (name)]
11
11
_alphanum_lowercase_names = [for name in local . _lowercase_names : join (" " , regexall (" [[:alnum:]]+" , name))]
12
12
generated_storage_account_names = [for name in local . _alphanum_lowercase_names : substr (name, 0 , 24 )]
You can’t perform that action at this time.
0 commit comments