Installation
Terratags can be installed in multiple ways. You don't need to have Go installed to use Terratags.
Binary Installation
The easiest way to install Terratags is to download a pre-built binary from the GitHub Releases page:
- Download the appropriate binary for your operating system (Windows, macOS, or Linux)
- Extract the archive if necessary
- Move the binary to a directory in your PATH
Linux/macOS
# Example for Linux amd64
curl -L https://github.com/terratags/terratags/releases/latest/download/terratags_linux_amd64.tar.gz | tar xz
sudo mv terratags /usr/local/bin/
Windows
Download the appropriate .zip file from the releases page, extract it, and add the location to your PATH.
Homebrew Installation (macOS/Linux)
If you use Homebrew, you can install Terratags with:
Go Installation (Alternative)
If you have Go installed, you can also install Terratags using Go's package manager:
This will download and install the latest version of Terratags to your Go bin directory.
Prerequisites
- Terraform (for analyzing Terraform configurations)
Verifying Installation
After installation, you can verify that Terratags is installed correctly by running:
This should display the current version of Terratags.
Building from Source
If you prefer to build from source:
This will create a terratags
binary in your current directory.
Next Steps
After installation, you'll need to:
- Create a configuration file that defines your required tags
- Run Terratags against your Terraform code
- Review the results and fix any non-compliant resources