terraform-azurerm-naming icon indicating copy to clipboard operation
terraform-azurerm-naming copied to clipboard

Resource like storage account should transform name and prefixes to lower

Open invisibleninja06 opened this issue 4 years ago • 2 comments

If I do not specify ToLower() on each prefix and the name the regex fails, with reason, since the module is not forcing all input values ToLower.

Would be ideal if the module did the legwork. In this way I can pass name and prefixes that may contain capitals, acceptable for other resources, but will get lower cased when used for storage account.

invisibleninja06 avatar Jul 23 '20 13:07 invisibleninja06

Yeah that would take a bit of time to implement since it would have to be specific for resources that don't allow uppercase characters. I'll have a look but it's not a "quick win".

yohanb avatar Oct 23 '20 16:10 yohanb

Also, if a name or prefix has invalid characters like hyphens or periods in the name, this module fails with no matches. suggestion for storage module: result = lower(join("", regexall("[a-z0-9]+", module.storage_account.result)))

haroldwongms avatar Jul 28 '21 23:07 haroldwongms