We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a54784 commit 9fb763cCopy full SHA for 9fb763c
1 file changed
terraform/main.tf
@@ -19,7 +19,7 @@ locals {
19
20
key_vault_suffix = local.suffix_short
21
key_vault_base_max = 24 - length(local.key_vault_suffix) - 2
22
- key_vault_base = substr(lower(replace(var.resource_prefix, "-", "")), 0, local.key_vault_base_max)
+ key_vault_base = substr(lower(replace(replace(var.resource_prefix, "-", ""), "_", "")), 0, local.key_vault_base_max)
23
key_vault_name = "${local.key_vault_base}kv${local.key_vault_suffix}"
24
}
25
0 commit comments