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

** Feature Request** Support for turning dashes off #132

Open
eamreyes opened this issue Jul 30, 2024 · 0 comments
Open

** Feature Request** Support for turning dashes off #132

eamreyes opened this issue Jul 30, 2024 · 0 comments

Comments

@eamreyes
Copy link

I'd like to be able to turn dashes off even if a resource name supports dashes.

module "naming" {
  source  = "Azure/naming/azurerm"
  use_dashes = false # default is true
  suffix = [ "test" ]
}

# Result would be

postgresql_server = {
      name        = "prefixpsqlsufix"
      name_unique = "prefixpsqlsufixasdfg"
      dashes      = true
      slug        = "psql"
      min_length  = 3
      max_length  = 63
      scope       = "global"
      regex       = "^[a-z0-9][a-zA-Z0-9-]+[a-z0-9]$"
    }

Rationale:

  • I want to use the naming module to standardize naming conventions and alleviate the burden of devs having to know naming rules.
  • I have projects for multiple clients, some want dashes, and others do not want dashes.

Is it possible for me to modify the module to support this functionality? Are there any gotchas I need to be aware of?

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

1 participant