Checkov vs Google Cloud Terraform Policy Validation
Checkov
checkov.ioGoogle Cloud Terraform Policy Validation
docs.cloud.google.comSide by side
| Figure | Checkov | Google Cloud Terraform Policy Validation |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | — | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Infrastructure Policy as Code Tools | 7.9 (#12) | 8.5 (#6) |
| Policy library | The Checkov documentation says it includes more than 750 predefined policies. | Using the tool requires a policy library and the Google Cloud CLI `terraform-tools` component. |
| Purpose | Checkov scans infrastructure-as-code files for misconfigurations that can cause security or compliance problems. | gcloud beta terraform vet enforces policy compliance as part of an infrastructure CI/CD pipeline. |
| Support | The project directs users to its documentation for tutorials and examples and identifies Prisma Cloud as the maintainer. | Until gcloud beta terraform vet is generally available, users are directed to open support tickets in the terraform-google-conversion GitHub repository. |
Plans
Google Cloud Terraform Policy Validation
- gcloud beta terraform vetFree
In their own words
Checkov
Checkov is a free tool for scanning infrastructure-as-code files for configuration problems that could affect security or compliance. Its documented targets include Terraform, CloudFormation, ARM, Serverless, Helm, Kubernetes, and Docker. The policy library contains more than 750 predefined checks, including checks for standards such as CIS and the AWS Foundations Benchmark. Checkov can also identify common credentials in IaC files, including AWS access keys, Azure service credentials, and private keys. Teams can create custom attribute policies in Python or YAML and composite policies in YAML. Documented continuous-integration integrations include Jenkins, Bitbucket Cloud Pipelines, GitHub Actions, and GitLab CI. Add-ons for Visual Studio Code and JetBrains provide real-time scanning and inline fixes. Installation is documented through pip and Homebrew, with Homebrew specified for macOS or Linux. The project supports Python 3.9 through 3.13 and is distributed under the Apache-2.0 license. Prisma Cloud extends Checkov with runtime scanning, visibility, native VCS integrations, drift detection, and pull request annotations. Alpine is not officially tested or supported; it requires Python 3.11 or later.
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.