Skip to content
SPECIFICTION
Get listed

Google Cloud Terraform Policy Validation vs Tirith

Google Cloud Terraform Policy Validation

docs.cloud.google.com

Tirith

github.com

Side by side

FigureGoogle Cloud Terraform Policy ValidationTirith
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WindowsYes—
macOSYes—
LinuxYesYes
Plans published11
Spec score · Infrastructure Policy as Code Tools8.5 (#6)7.1 (#19)
HeadquartersMountain View, California, USAGermany
Purposegcloud beta terraform vet enforces policy compliance as part of an infrastructure CI/CD pipeline.Tirith evaluates infrastructure documents against declarative JSON policies and reports which rules passed or failed, including the affected resource and value.

Plans

Google Cloud Terraform Policy Validation

  • gcloud beta terraform vetFree

Google Cloud Terraform Policy Validation pricing →

Tirith

  • Tirith (Apache-2.0)Free

Tirith pricing →

In their own words

Google Cloud Terraform Policy Validation

Google Cloud Terraform Policy Validation checks Terraform plans against organizational security and governance constraints before infrastructure changes are applied. The `gcloud beta terraform vet` command evaluates Terraform plan JSON, retrieving project data through Google Cloud APIs. It can flag violations, issue warnings, or halt a deployment before production; it returns exit code 0 when no violations are found and 2 when they are. Platform teams can place validation between plan and apply in CI/CD workflows using Cloud Build, Jenkins, or GitHub Actions. The command accepts Terraform 0.12 or later plan JSON and requires a policy library and the Google Cloud CLI `terraform-tools` component. Policies can cover supported resources from Terraform's google and google-beta providers, and constraints can be reused with other tools that support the framework. The command is free and client-side. The feature is in Preview under Pre-GA terms, where support may be limited. Security Command Center IaC validation has separate requirements: Premium or Enterprise activation at the organization level and a specified role. That workflow also requires Terraform Google provider version 5.5 or later.

Visit docs.cloud.google.com

Tirith

Tirith is a free, open-source Linux command-line tool that evaluates infrastructure documents against declarative JSON policies. It reports passed and failed rules together with the affected resource and value. Its pipeline gate checks Terraform plan output and can return a nonzero exit code when a policy violation appears, before infrastructure changes are applied. Documented inputs include Terraform plans and state, Kubernetes manifests, Infracost breakdowns, and other JSON documents. Policies can use providers and evaluators such as ContainedIn, Equals, and RegexMatch, while the provider architecture can be extended for other formats. Local evaluation runs on the user’s runner, and the project says policies and documents are not sent elsewhere. Optional organization mode checks plans against StackGuardian policies and uploads a masked document. Tirith documents GitHub Actions, GitLab CLI use, Bitbucket Pipelines, other CI, and local execution. OpenTofu plans work like Terraform plans for the documented gate.

Visit github.com