{"repo":"env0/terratag","free":true,"listed":false,"github":"https://github.com/env0/terratag","clone":"git clone https://github.com/env0/terratag.git","description":"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","language":"Go","stars":1054,"topics":["gcp","azure","aws","terraform","env0","terratag","tags","tagging","cloud","cost"],"license":"MPL-2.0","category":"deployment-docker-iac","readme_excerpt":"Terratag is brought to you with&nbsp;❤️&nbsp; by Let your team manage their own environment in AWS, Azure and Google. Governed by your policies and with complete visibility and cost management. What? Terratag is a CLI tool allowing for tags or labels to be applied across an entire set of OpenTofu/Terraform files. Terratag will apply tags or labels to any AWS, GCP and Azure resources. Terratag in action Why? Maintaining tags across your application is hard, especially when done manually. Terratag enables you to easily add tags to your existing IaC and benefit from some cross-resource tag applications you wish you had thought of when you had just started writing your OpenTofu/Terraform, saving you tons of time and making future updates easy. Read more on why tagging is important. How? Prerequisites - OpenTofu 1.x or Terraform 0.12 through 1.x. Usage 1. Install from homebrew: Or download the latest release binary . 1. Initialize Opentofu/Terraform modules to get provider schema and pull child modules: 1. Run Terratag or Example Output Before Terratag After Terratag Running terratag -tags={\\\"env0 environment id\\\":\\\"dev\\\",\\\"env0 project id\\\":\\\"clientA\\\"} will output: Optional CLI flags - -dir= - defaults to . . Sets the opentofu/terraform folder to tag .tf files in - -skipTerratagFiles=false - Dont skip processing .terratag.tf files (when running terratag a second time for the same directory) - -rename=false - Instead of replacing files named .tf with .terratag.tf , keep the origi","default_branch":null,"files":null,"tree":[],"storefront":"/r/env0","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/env0/terratag/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}