Terraform module to build proper naming based on naming and tagging convension.
module "azure_naming" {
source = ".././modules/module-azure-naming"
solution = "organization_name"
environment = "dev"
location = "westus"
alteration = "01"
tags = {
"ManagedBy" : "DevOps"
}
}
This module creates an null resources with correct short and full naming.
Name | Description | Type | Default | Required |
---|---|---|---|---|
alteration | Example of alteration: you spawn more than one environments in the same environment first alteration of the default deployment/environment = 01 second alteration of the deployment/environment = 02 | string | n/a |
yes |
environment | Environment name - example:prod/stage/dev/int | string | n/a |
yes |
location | location - example: westus | string | n/a |
yes |
solution | Solution name - example: organization_name | string | n/a |
yes |
delimiter | Delimiter to be used between name , etc. |
string | "-" |
no |
tags | Additional tags (e.g. map('BusinessImpact ,Moderate ) |
map | <map> |
no |
function | Function name | string | "" |
no |
Name | Description |
---|---|
alteration | Lowercased alteration. |
environment | Lowercased environment. |
solution | Lowercased solution. |
function | Lowercased function. |
location | Lowercased Azure location. |
name | Lowercased Solution, Environment, Location, Alteration name splatted by dash |
short_environment | Short version. Lowercased environment. |
short_location | Short version. Lowercased Azure location. |
short_solution | Lowercased short solution. |
short_name | Short version. Lowercased Solution, Environment, Location, Alteration name |
function_name | Lowercased Solution, Function, Environment, Location, Alteration name splatted by dash |
short_function_name | Short version. Lowercased Solution, Function, Environment, Location, Alteration name |
tags | Merge input tags with our tags. |
- Initial version