Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Terraform ist ein Infrastructure-as-Code-Tool (IaC), mit dem Sie Ressourcen und Berechtigungen für mehrere Google Cloud -Dienste, einschließlich Vertex AI, bereitstellen können.
Terraform hat eine deklarative, konfigurationsorientierte Syntax, mit der Sie die Infrastruktur beschreiben können, die Sie in Ihrem Vertex AI-Projekt bereitstellen möchten. Nachdem Sie diese Konfiguration in einer oder mehreren Terraform-Konfigurationsdateien erstellt haben, können Sie die Konfiguration mit der Terraform-Befehlszeile auf Ihre Vertex AI-Ressourcen anwenden.
Stellen Sie sich ein Szenario vor, in dem Sie eine standardisierte Konfiguration auf mehrere Vertex AI-Ressourcen eines bestimmten Typs anwenden möchten. Mit Terraform können Sie den gesamten Prozess so optimieren:
Beschreiben Sie die ausgewählte Infrastruktur in einer Terraform-Konfigurationsdatei.
Sie müssen keinen Code schreiben, der beschreibt, wie diese Konfiguration mithilfe von Objekten und Methoden aus der Vertex AI API bereitgestellt wird.
Verwenden Sie Terraform, um Ihre Terraform-Konfiguration zu bewerten und einen Ausführungsplan zu generieren. Basierend auf dieser Konfiguration gibt Terraform an, welche Änderungen an der Vertex AI-Infrastruktur vorgenommen werden.
Verwenden Sie Terraform, um die Änderungen im Ausführungsplan anzuwenden.
Terraform ruft die Vertex AI API im Hintergrund auf, um die geplanten Änderungen anzuwenden.
Wenn eine in der Terraform-Konfiguration definierte Vertex AI-Ressource oder ein Infrastrukturobjekt nicht vorhanden ist, erstellt Terraform diese(s).
Wenn eine Vertex AI-Ressource oder ein Infrastrukturobjekt vorhanden ist, aber eine andere Konfiguration hat, wird diese von Terraform an Ihre Terraform-Konfiguration angepasst.
Wenn eine Vertex AI-Ressource oder ein Infrastrukturobjekt mit Ihrer Terraform-Konfiguration übereinstimmt, lässt Terraform diese(s) unverändert.
Für Vertex AI verfügbare Terraform-Ressourcen
Terraform-Ressourcen stellen Infrastrukturobjekte dar. In der folgenden Tabelle sind die Terraform-Ressourcen aufgeführt, die für Vertex AI-Produkte und -Dienste verfügbar sind, sowie Links zu Terraform-Konfigurationsbeispielen:
[[["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)."],[],[],null,["# Terraform support for Vertex AI\n\nTerraform is an (IaC) tool that you can use\nto provision resources and permissions for multiple Google Cloud services,\nincluding Vertex AI.\n\nTerraform has a declarative and configuration-oriented syntax,\nwhich you can use to describe the infrastructure that you want to provision in\nyour Vertex AI project. After you author this configuration in\none or more Terraform configuration files, you can use the Terraform CLI to apply this configuration to your Vertex AI resources.\n\nConsider a scenario where you want to apply a standardized configuration to\nmultiple Vertex AI resources of a specific type. Using\nTerraform, you can streamline the entire process, as follows:\n\n- Describe the selected infrastructure in a Terraform configuration file.\n You don't need to author code describing how to provision this configuration\n using objects and methods from the Vertex AI API.\n\n- Use Terraform to evaluate your Terraform configuration and generate\n an execution plan. Based on this configuration, Terraform indicates\n what changes it plans to make to the Vertex AI infrastructure.\n\n- Use Terraform to apply the changes in the execution plan.\n Terraform invokes the Vertex AI API in the background to apply\n the planned changes.\n\n - If a Vertex AI resource or infrastructure object defined in\n the Terraform configuration does not exist, Terraform creates it.\n\n - If a Vertex AI resource or infrastructure object exists but\n has a different configuration, Terraform updates it to match your\n Terraform configuration.\n\n - If any Vertex AI resource or infrastructure object matches your Terraform configuration, Terraform leaves it unchanged.\n\nTerraform resources available for Vertex AI\n-------------------------------------------\n\n[Terraform resources](https://developer.hashicorp.com/terraform/language/resources) represent infrastructure objects. The following table lists the Terraform resources that are available for Vertex AI products and services, along with links to Terraform configuration samples:\n\nLearn more about Terraform\n--------------------------\n\n- [Terraform Developer website](https://developer.hashicorp.com/terraform/)\n\n- [What is Terraform?](https://developer.hashicorp.com/terraform/intro)\n\n- [Terraform Language Documentation](https://developer.hashicorp.com/terraform/language)\n\n- [Terraform CLI Documentation](https://developer.hashicorp.com/terraform/cli)\n\n- [Terraform registry](https://registry.terraform.io/providers/hashicorp/google/latest/docs/)\n\nWhat's next\n-----------\n\n- [Use Terraform to create a user-managed notebooks instance](/vertex-ai/docs/tutorials/terraform/terraform-create-user-managed-notebooks-instance)"]]