Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
gcloud beta terraform vet adalah pengganti untuk project
terraform-validator
open source, dengan beberapa perbedaan kecil. Jika memigrasikan pipeline CI/CD
untuk menggunakan gcloud beta terraform vet, Anda harus melakukan perubahan berikut.
1. Memperbarui perintah dan argumen
Ganti terraform-validator validate dengan gcloud beta terraform vet.
Ganti --policy-path dengan --policy-library.
Contoh dasar:
# Old
terraform-validatorvalidate./tfplan.json--policy-path=/path/to/policy-library
# New
gcloudbetaterraformvet./tfplan.json--policy-library=/path/to/policy-library
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-04-02 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`."]]],[]]