# env0/terratag

Terratag is a CLI tool that enables users of Terraform to automatically create and maintain tags across their entire set of AWS, Azure, and GCP resources

Repository: https://github.com/env0/terratag
Canonical: https://ross.abutalabs.com/products/terratag
Homepage: https://terratag.io
Language: Go
License: MPL-2.0
License Family: copyleft
Topics: gcp, azure, aws, terraform, env0, terratag, tags, tagging, cloud, cost, hcl, hashicorp-terraform, devops, infrastructure-as-code, iac
Last push: 2026-07-03T11:21:09+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 90, release rhythm 62, longevity 100
- inputs: {"age_days": 2431, "days_push": 61, "days_rel": 259, "gap_med": 11.5, "n_releases_24m": 15}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1055, forks 49 (observed 2026-08-28T04:03:24.405445+00:00)

## What it is
Terratag is a CLI tool that automatically applies tags or labels across an entire set of Terraform/OpenTofu (and Terragrunt) files, targeting AWS, Azure, and GCP resources. It rewrites HCL files so tags stay consistent across infrastructure codebases.

## Use cases
- automatically tag all terraform resources across a codebase
- retroactively add tags to existing terraform iac files
- enforce consistent tagging for cloud cost management
- apply labels to GCP resources in terraform
- add tags to AWS and Azure terraform modules at scale

## When to choose
- you manage large Terraform/OpenTofu codebases on AWS, Azure, or GCP and need consistent tags
- you want to retroactively tag existing infrastructure code without manual edits
- tagging is required for cost allocation, reporting, or governance

## When to avoid
- you don't use Terraform/OpenTofu or Terragrunt for infrastructure
- your cloud provider or resources are outside AWS, Azure, and GCP
- you need runtime tagging enforcement rather than code rewriting

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, infrastructure-as-code, developer-tools
- domain: infrastructure-as-code, cloud-computing, developer-tools
- platform: cli, cross-platform, windows
- tags: terraform, opentofu, tagging, hcl, aws, azure, gcp, terragrunt, cost-management, devops, linux, macos

## Member repositories
- env0/terratag (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:24.405445+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:58:37.951748+00:00, confidence not recorded.
  - readme: https://github.com/env0/terratag (fetched 2026-08-28T04:03:24.405445+00:00, sha 69079d34e04c)
  - homepage: https://terratag.io (fetched 2026-08-29T13:00:04.403008+00:00, sha ab17d1785139)
- Data as of 2026-08-30T08:39:29.467469+00:00.
