label
devops-workflow/label/local
Terraform module to create consistent naming
 terraform-local-label Terraform module to provide consistent label names and tags for resources. A single name format will not solve every use case, so multiple variants are returned and there is a few options to affect how they get build. The general name convention is {organization}-{environment}-{name}-{attributes}. Name is required, the other 3 can be turned on/off individually. The delimiter (-) can be changed All devops-workflow modules will eventually use this or labels. NOTE: local refers to this using locals and does not create any resources. It just builds new variables. Terraform registry: https://registry.terraform.io/modules/devops-workflow/label/local Usage: Basic Example ``hcl module "name" { source =
| Name | Type | Description | Default |
|---|---|---|---|
| environment | any | Environment (ex: `dev`, `qa`, `stage`, `prod`). (Second or top level namespace. | required |
| name | any | Base name for resource | required |
| attributes | any | Suffix name with additional attributes (policy, role, etc.) | [] |
| component | any | TAG: Underlying, dedicated piece of service (Cache, DB, ...) | "UNDEF" |
| delimiter | any | Delimiter to be used between `name`, `namespaces`, `attributes`, etc. | "-" |
| monitor | any | TAG: Should resource be monitored | "UNDEF" |
| namespace-env | any | Prefix name with the environment. If true, format is: <env>-<name> | true |
| namespace-org | any | Prefix name with the organization. If true, format is: <org>-<env namespaced nam | false |
| organization | any | Organization name (Top level namespace) | "" |
| owner | any | TAG: Owner of the service | "UNDEF" |
| product | any | TAG: Company/business product | "UNDEF" |
| service | any | TAG: Application (microservice) name | "UNDEF" |
| tags | any | A map of additional tags | {} |
| team | any | TAG: Department/team of people responsible for service | "UNDEF" |
attributes — Attribute string lowercaseenvironment — Environment name lowercaseid — Fully formatted name IDid_20 — ID truncated to 20 charactersid_32 — ID truncated to 32 charactersid_attr_20 — ID max size 20 characters by truncating `id_org` then appending `attributes`id_attr_32 — ID max size 32 characters by truncating `id_org` then appending `attributes`id_env — If env namespace enabled <env>-<name> else <name>id_org — If org namespace enabled <org>-<id_env> else <id_env>name — Name lowercaseorganization — Organization name lowercasetags — Tags map merged with standard tagsorg_attr_20 — Internal debugging. DO NOT USEorg_attr_32 — Internal debugging. DO NOT USEAzure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,