Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 days 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-04T17:27:26.000Z (over 2 years ago)
- Last Synced: 2023-03-02T22:06:26.621Z (over 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: 6
- Watchers: 2
- 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/workflows/pre-commit-check/badge.svg)](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)` |[| no |
"default"
]
| 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) |