Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Bisnis beralih ke infrastruktur sebagai kode, dan dengan perubahan tersebut,
muncul kekhawatiran bahwa error konfigurasi dapat menyebabkan pelanggaran keamanan dan
tata kelola. Untuk mengatasi hal ini, administrator keamanan dan cloud harus dapat
menyiapkan batasan yang memastikan semua orang di organisasi mereka mengikuti
praktik terbaik keamanan. Pengaman ini diberikan dalam bentuk batasan.
Batasan menentukan sumber kebenaran organisasi Anda untuk persyaratan
keamanan dan tata kelola. Batasan harus kompatibel dengan alat di
setiap tahap siklus proses aplikasi, mulai dari pengembangan, deployment, dan
bahkan hingga audit resource yang di-deploy.
gcloud beta terraform vet adalah alat untuk
menerapkan kepatuhan kebijakan sebagai bagian dari pipeline CI/CD infrastruktur. Saat
Anda menjalankan alat ini, gcloud beta terraform vet akan mengambil data project dengan Google Cloud
API yang diperlukan untuk validasi rencana Anda secara akurat. Anda dapat menggunakan
gcloud beta terraform vet untuk mendeteksi pelanggaran kebijakan dan memberikan peringatan atau menghentikan
deployment sebelum mencapai produksi. Set batasan yang sama yang Anda
gunakan dengan gcloud beta terraform vet juga dapat digunakan dengan alat lain yang
mendukung framework yang sama.
Dengan gcloud beta terraform vet, Anda dapat
Menerapkan kebijakan organisasi Anda pada setiap tahap pengembangan aplikasi
Menghapus error manual dengan mengotomatiskan validasi kebijakan
Mengurangi waktu pembelajaran dengan menggunakan satu paradigma untuk semua pengelolaan kebijakan
Dukungan
Hingga gcloud beta terraform vet tersedia secara umum (GA), saluran dukungan reguler
mungkin tidak tersedia. Untuk dukungan terkait gcloud beta terraform vet,
buka tiket
di repositori GitHub terraform-google-conversion.
Dokumentasi
gcloud beta terraform vet mencakup referensi berikut:
Panduan memulai – Cara menerapkan batasan yang menampilkan error, lalu mengubah batasan tersebut sehingga pemeriksaan validasi lulus.
[[["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-08-18 UTC."],[[["\u003cp\u003e\u003ccode\u003egcloud beta terraform vet\u003c/code\u003e is a tool designed to enforce policy compliance within infrastructure CI/CD pipelines, ensuring adherence to security and governance requirements.\u003c/p\u003e\n"],["\u003cp\u003eThe tool enables organizations to define constraints, representing the source of truth for security and governance, compatible across all application lifecycle stages.\u003c/p\u003e\n"],["\u003cp\u003eUsing \u003ccode\u003egcloud beta terraform vet\u003c/code\u003e automates policy validation, minimizes manual errors, and allows consistent policy management at any stage of development.\u003c/p\u003e\n"],["\u003cp\u003eWhile in its pre-GA phase, \u003ccode\u003egcloud beta terraform vet\u003c/code\u003e offers support via a designated GitHub repository, with further documentation available for guidance on creating and validating constraints.\u003c/p\u003e\n"],["\u003cp\u003ePre-GA products and features, like \u003ccode\u003egcloud beta terraform vet\u003c/code\u003e are available "as is" and are subject to the "Pre-GA Offerings Terms", meaning they might have limited support.\u003c/p\u003e\n"]]],[],null,["# Policy validation\n\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nBusinesses are shifting towards infrastructure-as-code, and with that change\ncomes a concern that configuration errors can cause security and governance\nviolations. To address this, security and cloud administrators need to be able\nto set up guardrails that make sure everyone in their organization follows\nsecurity best practices. These guardrails are in the form of *constraints*.\n\nConstraints define your organization's source of truth for security and\ngovernance requirements. The constraints must be compatible with tools across\nevery stage of the application lifecycle, from development, to deployment, and\neven to an audit of deployed resources.\n\n[`gcloud beta terraform vet`](/sdk/gcloud/reference/beta/terraform/vet) is a tool for\nenforcing policy compliance as part of an infrastructure CI/CD pipeline. When\nyou run this tool, `gcloud beta terraform vet` retrieves project data with Google Cloud\nAPIs that are necessary for accurate validation of your plan. You can use\n`gcloud beta terraform vet` to detect policy violations and provide warnings or halt\ndeployments before they reach production. The same set of constraints that you\nuse with `gcloud beta terraform vet` can also be used with any other tool that\nsupports the same framework.\n\nWith `gcloud beta terraform vet` you can:\n\n- Enforce your organization's policy at any stage of application development\n- Remove manual errors by automating policy validation\n- Reduce learning time by using a single paradigm for all policy management\n\nSupport\n-------\n\nUntil `gcloud beta terraform vet` is generally available (GA), regular support channels\nmight not be available. For support with `gcloud beta terraform vet`,\n[open a ticket](https://github.com/GoogleCloudPlatform/terraform-google-conversion/issues/new/choose)\non the `terraform-google-conversion` GitHub repository.\n\nDocumentation\n-------------\n\n`gcloud beta terraform vet` includes the following resources:\n\n- [Quickstart](/docs/terraform/policy-validation/quickstart) -- How to implement a constraint that throws an error, and then modify the constraint so the validation check passes.\n- [Create a policy library](/docs/terraform/policy-validation/create-policy-library) -- How to create a centralized policy repository.\n- [Create Terraform constraints](/docs/terraform/policy-validation/create-terraform-constraints) -- How to add Terraform-based constraints.\n- [Create CAI constraints](/docs/terraform/policy-validation/create-cai-constraints) -- How to add CAI-based constraints.\n- [Validate policies](/docs/terraform/policy-validation/validate-policies) -- How to validate policy compliance with `gcloud beta terraform vet`.\n- [Troubleshooting](/docs/terraform/policy-validation/troubleshooting) -- Potential problems and solutions to fix them.\n- [Migrate from terraform-validator](/docs/terraform/policy-validation/migrate-from-terraform-validator) - How to migrate to `gcloud beta terraform vet` from [terraform-validator](https://github.com/GoogleCloudPlatform/terraform-validator)."]]