Stay organized with collections
Save and categorize content based on your preferences.
gcloud beta terraform vet is a replacement for the open-source
terraform-validator
project, with a few minor differences. If you are migrating your CI/CD pipeline
to use gcloud beta terraform vet, you will need to make the following changes.
1. Update the command and args
Replace terraform-validator validate with gcloud beta terraform vet
Replace --policy-path with --policy-library
Basic example:
# Old
terraform-validatorvalidate./tfplan.json--policy-path=/path/to/policy-library
# New
gcloudbetaterraformvet./tfplan.json--policy-library=/path/to/policy-library
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["`gcloud beta terraform vet` replaces the `terraform-validator` project with some minor changes, and is subject to the \"Pre-GA Offerings Terms\"."],["Migrating to `gcloud beta terraform vet` requires updating the command from `terraform-validator validate` to `gcloud beta terraform vet`, and replacing `--policy-path` with `--policy-library`."],["Service account impersonation can be used with `gcloud beta terraform vet` by adding the `--impersonate-service-account` flag."],["It's recommended to use the newer format for writing policies and upgrade existing policies from `v1alpha1`, especially when sourcing from `github.com/GoogleCloudPlatform/policy-library`."]]],[]]