Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Unternehmen gehen immer mehr zur Infrastruktur als Code über. Dies bringt die Gefahr mit sich, dass Konfigurationsfehler Sicherheits- und Governance-Verstöße verursachen. Um dies zu verhindern, müssen Sicherheits- und Cloud-Administratoren Sicherheitsmaßnahmen einrichten können, die dafür sorgen, dass alle in ihrer Organisation Best Practices für die Sicherheit befolgen. Diese Sicherheitsmaßnahmen werden in Form von Einschränkungen getroffen.
Einschränkungen definieren die "Source of Truth" Ihrer Organisation für Sicherheits- und Governance-Anforderungen. Die Einschränkungen müssen mit Tools in jeder Phase des Anwendungslebenszyklus kompatibel sein – von der Entwicklung über die Bereitstellung bis zu einer Prüfung der bereitgestellten Ressourcen.
gcloud beta terraform vet ist ein Tool, mit dem sich die Einhaltung von Richtlinien im Rahmen einer CI-/CD-Pipeline der Infrastruktur erzwingen lässt. Wenn Sie dieses Tool ausführen, ruft der gcloud beta terraform vet Projektdaten mithilfe von Google CloudAPIs ab, die für die präzise Validierung Ihres Plans erforderlich sind. Mit dem gcloud beta terraform vet können Sie Richtlinienverstöße ermitteln und Warnungen auslösen oder Bereitstellungen anhalten, bevor sie in die Produktion übernommen werden. Die gleichen Einschränkungen, die Sie mit dem gcloud beta terraform vet verwenden, können auch mit jedem anderen Tool genutzt werden, das dasselbe Framework unterstützt.
Mit gcloud beta terraform vet können Sie:
die Richtlinie Ihrer Organisation in jeder Phase der Anwendungsentwicklung durchsetzen
Manuelle Fehler durch automatisierte Richtlinienvalidierung korrigieren
die Lernzeit durch Verwendung eines einzigen Paradigmas für die gesamte Richtlinienverwaltung reduzieren
Support
Bis gcloud beta terraform vet allgemein verfügbar ist, sind möglicherweise keine regulären Supportkanäle verfügbar. Wenn Sie Support für gcloud beta terraform vet benötigen, öffnen Sie ein Ticket im GitHub-Repository terraform-google-conversion.
Dokumentation
gcloud beta terraform vet enthält die folgenden Ressourcen:
Kurzanleitung: Anleitung, wie Sie eine Einschränkung implementieren, die einen Fehler auslöst, und dann die Einschränkung ändern, damit die Validierungsprüfung bestanden wird.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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)."]]