GithubHelp home page GithubHelp logo

gsoft-inc / terraform-azurerm-naming Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 11.0 92 KB

Terraform Azure RM Module for naming resources and resource groups following Microsoft's naming guidelines.

License: Apache License 2.0

HCL 94.92% JavaScript 2.47% Mustache 2.61%
terraform terraform-module azure naming-conventions

terraform-azurerm-naming's Issues

Add help section to override suffix and separator

It unclear to me how to override the random suffix generation as well as how to change the separator used.

In my case for storage accounts I rather not have 0 as separator, in fact id like no separator at all.
The following does not work

module "csazname_storage_account" {
  source    = "gsoft-inc/naming/azurerm//modules/storage/storage_account"
  name      = lower(var.rg_rs_basename)
  prefixes  = ["st", lower(var.rg_project), lower(var.rg_projecttype)]
  separator = ""
}

This results in An argument named "separator" is not expected here.

Setting the suffixes to [] results in regular generation, since its the default.
Setting the suffixes to null results in error
setting suffixes to [""] result in no suffix but a separator is still present

Appreciate any assistance

terraform init failing

Hi - these set of modules look really useful for programmatically naming resources . I am seeing an issue however on Windows with terraform 0.13.7 when i run terraform init with just say the module for the resource group. The init appears to get stuck in a loop?

Issue here

Something I am doing wrong or a bug? Any help assistance would be appreciated.

Thanks

Resource like storage account should transform name and prefixes to lower

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.

Underscore seems to break resource group naming regex

Underscore is a valid character for resource groups

The following fails
RG-TST-DEV-Main_NodePool-j4536dd634745qk
RG_TST_DEV_Main_NodePool-j4536dd634745qk

^[a-zA-Z0-9]{1}[a-zA-Z0-9-]*$ should thus become ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]*$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.