Terratag

A CLI tool to manage tags on Terraform resources.

Visit Website →

Overview

Terratag is a utility that recursively scans a directory of Terraform files and applies a consistent set of tags to all resources that support them. This helps solve the common problem of ensuring all cloud resources are properly tagged for cost allocation, ownership, or automation. It works by parsing the HCL and injecting the specified tags, saving significant manual effort.

✨ Key Features

  • Recursively scans and tags resources
  • Applies a common set of tags defined by the user
  • Works across all Terraform providers
  • Can be used as a pre-commit hook or in CI

🎯 Key Differentiators

  • Simple, focused command-line utility.
  • Modifies the HCL files directly.
  • Easy to integrate into any workflow.

Unique Value: Automates the tedious and error-prone process of applying consistent tags to all resources in a Terraform project.

🎯 Use Cases (3)

Enforcing a consistent tagging policy across all infrastructure. Automating the process of adding ownership or cost center tags. Preparing Terraform code for cost allocation and reporting.

✅ Best For

  • Running `terratag` in a CI pipeline before `terraform plan` to ensure all new resources are tagged.
  • As a pre-commit hook to automatically tag resources before code is committed.

💡 Check With Vendor

Verify these considerations match your specific requirements:

  • Security scanning.
  • End-to-end testing.

🏆 Alternatives

Yor

While other tools might offer tagging as part of a larger feature set, Terratag is a lightweight, standalone utility that does one thing and does it well.

💻 Platforms

Desktop

✅ Offline Mode Available

🔌 Integrations

Terraform

💰 Pricing

Contact for pricing
Free Tier Available

Free tier: Fully open-source and free.

Visit Terratag Website →