https://github.com/rhythmictech/terraform-terraform-tags
Tag the world
https://github.com/rhythmictech/terraform-terraform-tags
tagging terraform terraform-module terraform-modules
Last synced: about 1 year ago
JSON representation
Tag the world
- Host: GitHub
- URL: https://github.com/rhythmictech/terraform-terraform-tags
- Owner: rhythmictech
- License: mit
- Created: 2019-11-14T15:11:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-04T17:27:26.000Z (about 4 years ago)
- Last Synced: 2025-04-04T07:11:20.309Z (about 1 year ago)
- Topics: tagging, terraform, terraform-module, terraform-modules
- Language: HCL
- Homepage: https://registry.terraform.io/modules/rhythmictech/tags/terraform
- Size: 21.5 KB
- Stars: 5
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# terraform-terraform-tags
[](https://github.com/rhythmictech/terraform-terraform-tags/actions) 
A handy dandy module to ensure consistent tagging policies across your Terraform world.
Example:
```hcl
module "tags" {
source = "rhythmictech/tags/terraform"
version = "1.0.0"
names = ["example", "prod", "frontend"]
tags = {
"Env" = "prod",
"Namespace" = "frontend",
"Owner" = "Frontend Engineering Team"
}
}
```
## Requirements
| Name | Version |
|------|---------|
| terraform | >= 0.12.19 |
## Providers
No provider.
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| enforce\_case | Type casing to enforce. Options are: [ None (default) \| UPPER \| lower ] | `string` | `"None"` | no |
| name\_seperator | Seperator to seperate names in name (default '-') | `string` | `"-"` | no |
| names | Namespaces in descending level of specificity, eg ['marge', 'kubernetes', 'prod', 'eus1'] | `list(string)` |
[
"default"
]
| no |
| tags | Additional tags. Overwrite module-generated tags | `map(string)` | `{}` | no |
## Outputs
| Name | Description |
|------|-------------|
| name | Moniker to be applied to resources |
| name32 | first 32 chars of string name |
| name6 | first 6 chars of string name |
| namenosymbols | name with symbols removed |
| tags | Tags as a map (includes a `Name` tag) |
| tags\_as\_list\_of\_maps | Tags as a list of maps, to make things like tagging ECS simple (includes a `Name` tag) |
| tags\_no\_name | Tags as a map (excludes Name key) |