{"id":22861877,"url":"https://github.com/escapace/terraform-null-label","last_synced_at":"2026-02-24T11:04:14.981Z","repository":{"id":84825930,"uuid":"270637589","full_name":"escapace/terraform-null-label","owner":"escapace","description":"consistent naming convention","archived":false,"fork":false,"pushed_at":"2024-12-14T09:49:11.000Z","size":233,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2025-02-06T13:18:35.333Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/escapace.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-08T11:11:06.000Z","updated_at":"2024-12-14T09:51:22.000Z","dependencies_parsed_at":"2023-11-12T16:02:32.224Z","dependency_job_id":"99ff9778-54cc-48c3-a504-b5435e48ddb5","html_url":"https://github.com/escapace/terraform-null-label","commit_stats":null,"previous_names":[],"tags_count":12,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escapace%2Fterraform-null-label","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escapace%2Fterraform-null-label/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escapace%2Fterraform-null-label/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escapace%2Fterraform-null-label/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/escapace","download_url":"https://codeload.github.com/escapace/terraform-null-label/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246443520,"owners_count":20778247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["terraform","terraform-module"],"created_at":"2024-12-13T10:11:25.451Z","updated_at":"2025-10-25T10:33:29.377Z","avatar_url":"https://github.com/escapace.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- BEGIN_TF_DOCS --\u003e\n\n## Inputs\n\n| Name                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Type           | Default                                                                                                                                                                                                                                                                                                                                                                   | Required |\n| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------: |\n| additional_tag_map  | Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. This is for some rare cases where resources want additional configuration of tags and therefore take a list of maps with tag key, value, and additional configuration.                                                                                                                                                                                                                                                                                                                                                        | `map(string)`  | `{}`                                                                                                                                                                                                                                                                                                                                                                      |    no    |\n| attributes          | ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, in the order they appear in the list. New attributes are appended to the end of the list. The elements of the list are joined by the `delimiter` and treated as a single ID element.                                                                                                                                                                                                                                                                                                                                                                | `list(string)` | `[]`                                                                                                                                                                                                                                                                                                                                                                      |    no    |\n| context             | Single object for setting entire context at once. See description of individual variables for details. Leave string and numeric variables as `null` to use default value. Individual variable settings (non-null) override settings in context object, except for attributes, tags, and additional_tag_map, which are merged.                                                                                                                                                                                                                                                                                                       | `any`          | `{ \"additional_tag_map\": {}, \"attributes\": [], \"delimiter\": null, \"descriptor_formats\": {}, \"enabled\": true, \"environment\": null, \"id_length_limit\": null, \"label_key_case\": null, \"label_order\": [], \"label_value_case\": null, \"labels_as_tags\": [ \"unset\" ], \"name\": null, \"namespace\": null, \"regex_replace_chars\": null, \"stage\": null, \"tags\": {}, \"tenant\": null }` |    no    |\n| delimiter           | Delimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `\"\"` to use no delimiter at all.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | `string`       | `null`                                                                                                                                                                                                                                                                                                                                                                    |    no    |\n| descriptor_formats  | Describe additional descriptors to be output in the `descriptors` output map. Map of maps. Keys are names of descriptors. Values are maps of the form `{    format = string    labels = list(string) }` (Type is `any` so the map values can later be enhanced to provide additional options.) `format` is a Terraform format string to be passed to the `format()` function. `labels` is a list of labels, in order, to pass to `format()` function. Label values will be normalized before being passed to `format()` so they will be identical to how they appear in `id`. Default is `{}` (`descriptors` output will be empty). | `any`          | `{}`                                                                                                                                                                                                                                                                                                                                                                      |    no    |\n| enabled             | Set to false to prevent the module from creating any resources                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | `bool`         | `null`                                                                                                                                                                                                                                                                                                                                                                    |    no    |\n| environment         | ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | `string`       | `null`                                                                                                                                                                                                                                                                                                                                                                    |    no    |\n| id_length_limit     | Limit `id` to this many characters (minimum 6). Set to `0` for unlimited length. Set to `null` for keep the existing setting, which defaults to `0`. Does not affect `id_full`.                                                                                                                                                                                                                                                                                                                                                                                                                                                     | `number`       | `null`                                                                                                                                                                                                                                                                                                                                                                    |    no    |\n| label_key_case      | Controls the letter case of the `tags` keys (label names) for tags generated by this module. Does not affect keys of tags passed in via the `tags` input. Possible values: `lower`, `title`, `upper`. Default value: `title`.                                                                                                                                                                                                                                                                                                                                                                                                       | `string`       | `null`                                                                                                                                                                                                                                                                                                                                                                    |    no    |\n| label_order         | The order in which the labels (ID elements) appear in the `id`. Defaults to [\"namespace\", \"environment\", \"stage\", \"name\", \"attributes\"]. You can omit any of the 6 labels (\"tenant\" is the 6th), but at least one must be present.                                                                                                                                                                                                                                                                                                                                                                                                  | `list(string)` | `null`                                                                                                                                                                                                                                                                                                                                                                    |    no    |\n| label_value_case    | Controls the letter case of ID elements (labels) as included in `id`, set as tag values, and output by this module individually. Does not affect values of tags passed in via the `tags` input. Possible values: `lower`, `title`, `upper` and `none` (no transformation). Set this to `title` and set `delimiter` to `\"\"` to yield Pascal Case IDs. Default value: `lower`.                                                                                                                                                                                                                                                        | `string`       | `null`                                                                                                                                                                                                                                                                                                                                                                    |    no    |\n| labels_as_tags      | Set of labels (ID elements) to include as tags in the `tags` output. Default is to include all labels. Tags with empty values will not be included in the `tags` output. Set to `[]` to suppress all generated tags. **Notes:** The value of the `name` tag, if included, will be the `id`, not the `name`. Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be changed in later chained modules. Attempts to change it will be silently ignored.                                                                                                                                                   | `set(string)`  | `[ \"default\" ]`                                                                                                                                                                                                                                                                                                                                                           |    no    |\n| name                | ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. This is the only ID element not also included as a `tag`. The \"name\" tag is set to the full `id` string. There is no tag with the value of the `name` input.                                                                                                                                                                                                                                                                                                                                                                                           | `string`       | `null`                                                                                                                                                                                                                                                                                                                                                                    |    no    |\n| namespace           | ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | `string`       | `null`                                                                                                                                                                                                                                                                                                                                                                    |    no    |\n| regex_replace_chars | Terraform regular expression (regex) string. Characters matching the regex will be removed from the ID elements. If not set, `\"/[^a-zA-Z0-9-]/\"` is used to remove all characters other than hyphens, letters and digits.                                                                                                                                                                                                                                                                                                                                                                                                           | `string`       | `null`                                                                                                                                                                                                                                                                                                                                                                    |    no    |\n| stage               | ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | `string`       | `null`                                                                                                                                                                                                                                                                                                                                                                    |    no    |\n| tags                | Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the tag values will be modified by this module.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | `map(string)`  | `{}`                                                                                                                                                                                                                                                                                                                                                                      |    no    |\n| tenant              | ID element \\_(Rarely used, not included by default)\\_. A customer identifier, indicating who this instance of a resource is for                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | `string`       | `null`                                                                                                                                                                                                                                                                                                                                                                    |    no    |\n\n## Outputs\n\n| Name                 | Description                                                                                                                                                                                                                    |\n| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| additional_tag_map   | The merged additional_tag_map                                                                                                                                                                                                  |\n| attributes           | List of attributes                                                                                                                                                                                                             |\n| context              | Merged but otherwise unmodified input to this module, to be used as context input to other modules. Note: this version will have null values as defaults, not the values actually used as defaults.                            |\n| delimiter            | Delimiter between `namespace`, `tenant`, `environment`, `stage`, `name` and `attributes`                                                                                                                                       |\n| descriptors          | Map of descriptors as configured by `descriptor_formats`                                                                                                                                                                       |\n| enabled              | True if module is enabled, false otherwise                                                                                                                                                                                     |\n| environment          | Normalized environment                                                                                                                                                                                                         |\n| id                   | Disambiguated ID string restricted to `id_length_limit` characters in total                                                                                                                                                    |\n| id_full              | ID string not restricted in length                                                                                                                                                                                             |\n| id_length_limit      | The id_length_limit actually used to create the ID, with `0` meaning unlimited                                                                                                                                                 |\n| label_order          | The naming order actually used to create the ID                                                                                                                                                                                |\n| name                 | Normalized name                                                                                                                                                                                                                |\n| namespace            | Normalized namespace                                                                                                                                                                                                           |\n| normalized_context   | Normalized context of this module                                                                                                                                                                                              |\n| regex_replace_chars  | The regex_replace_chars actually used to create the ID                                                                                                                                                                         |\n| stage                | Normalized stage                                                                                                                                                                                                               |\n| tags                 | Normalized Tag map                                                                                                                                                                                                             |\n| tags_as_list_of_maps | This is a list with one map for each `tag`. Each map contains the tag `key`, `value`, and contents of `var.additional_tag_map`. Used in the rare cases where resources need additional configuration information for each tag. |\n| tenant               | Normalized tenant                                                                                                                                                                                                              |\n\n## Requirements\n\n| Name      | Version   |\n| --------- | --------- |\n| terraform | \u003e= 0.13.0 |\n\n\u003c!-- END_TF_DOCS --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescapace%2Fterraform-null-label","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fescapace%2Fterraform-null-label","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescapace%2Fterraform-null-label/lists"}