gsoft-inc / terraform-azurerm-naming Goto Github PK
View Code? Open in Web Editor NEWTerraform Azure RM Module for naming resources and resource groups following Microsoft's naming guidelines.
License: Apache License 2.0
Terraform Azure RM Module for naming resources and resource groups following Microsoft's naming guidelines.
License: Apache License 2.0
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
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
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 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-_]*$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.