{"repo":"cloudposse/terraform-null-label","free":true,"listed":false,"github":"https://github.com/cloudposse/terraform-null-label","clone":"git clone https://github.com/cloudposse/terraform-null-label.git","description":"Terraform Module to define a consistent naming convention by (namespace, stage, name, [attributes])","language":"HCL","stars":711,"topics":["terraform","terraform-modules","naming-convention","name","namespace","stage","hcl2","labels","conventions"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"Terraform module designed to generate consistent names and tags for resources. Use terraform-null-label to implement a strict naming convention. There are 6 inputs considered \"labels\" or \"ID elements\" (because the labels are used to construct the ID): 1. namespace 1. tenant 1. environment 1. stage 1. name 1. attributes This module generates IDs using the following convention by default: {namespace}-{environment}-{stage}-{name}-{attributes} . However, it is highly configurable. The delimiter (e.g. - ) is configurable. Each label item is optional (although you must provide at least one). So if you prefer the term stage to environment and do not need tenant , you can exclude them and the label id will look like {namespace}-{stage}-{name}-{attributes} . - The tenant label was introduced in v0.25.0. To preserve backward compatibility, it is not included by default. - The attributes input is actually a list of strings and {attributes} expands to the list elements joined by the delimiter. - If attributes is excluded but namespace , stage , and environment are included, id will look like {namespace}-{environment}-{stage}-{name} . Excluding attributes is discouraged, though, because attributes are the main way modules modify the ID to ensure uniqueness when provisioning the same resource types. - If you want the label items in a different order, you can specify that, too, with the label order list. - You can set a maximum length for the id , and the module will create a (probably) uni","default_branch":null,"files":null,"tree":[],"storefront":"/r/cloudposse","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cloudposse/terraform-null-label/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}