以 gcloud beta terraform vet 取代 terraform-validator validate
以 --policy-library 取代 --policy-path
基本範例:
# Old
terraform-validatorvalidate./tfplan.json--policy-path=/path/to/policy-library
# New
gcloudbetaterraformvet./tfplan.json--policy-library=/path/to/policy-library
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-02 (世界標準時間)。"],[[["`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`."]]],[]]