Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource like storage account should transform name and prefixes to lower #3

Open
invisibleninja06 opened this issue Jul 23, 2020 · 2 comments

Comments

@invisibleninja06
Copy link

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.

@yohanb
Copy link
Contributor

yohanb commented Oct 23, 2020

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".

@haroldwongms
Copy link

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)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants