Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
In diesem Dokument wird beschrieben, wie Sie mit dem Tool zur automatisierten Bereitstellung im Workload Manager die Terraform- und Ansible-IaC (Infrastruktur als Code) herunterladen und Ihre Arbeitslast in Google Cloudbereitstellen.
Terraform- und Ansible-IaC exportieren
Nachdem Sie während der Konfiguration die Bereitstellungsdetails für Ihr System angegeben haben, können Sie mit dem Tool „Geführte Bereitstellungsautomatisierung“ die Terraform- und Ansible-Infrastruktur als Code (IaC) herunterladen, anstatt dass das System automatisch über Workload Manager bereitgestellt wird.
Die heruntergeladene Terraform-Datei enthält Variablen, die auf der Konfiguration Ihrer Bereitstellung basieren. Über die folgenden Variablen werden die Terraform- und Ansible-Dateien bei Bedarf aus einem von Google verwalteten Repository heruntergeladen:
source: Hiermit werden die verbleibenden Terraform-Dateien heruntergeladen.
package_location: lädt die Ansible-Scripts herunter.
Sie können die Terraform-Dateien anpassen und die Bereitstellungskonfiguration ändern.
Weitere Informationen zum Verwalten und Bereitstellen von Terraform-Dateien inGoogle Cloudfinden Sie in der Terraform-Dokumentation für Google Cloud .
Änderungen an der Terraform- oder Ansible-IaC-Konfiguration können zu Problemen während des Bereitstellungsvorgangs führen oder dazu, dass Ihre Konfiguration nicht mehr den Best Practices und Empfehlungen entspricht.
[[["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-09-02 (UTC)."],[],[],null,["# Export and deploy\n\nThis document describes how to use the Guided Deployment Automation tool\nin Workload Manager to download the Terraform and Ansible infrastructure\nas code (IaC) and deploy your workload on Google Cloud.\n\nExport Terraform and Ansible IaC\n--------------------------------\n\nDuring the configuration, after you specify the deployment details for your\nsystem, the Guided Deployment Automation tool provides you with\nan option to download the Terraform and Ansible infrastructure\nas code (IaC), instead of Workload Manager deploying the system\nautomatically.\n\nThe downloaded Terraform file contains variables based on the configuration of\nyour deployment. The following variables download the Terraform and Ansible files\nfrom a Google-owned repository, when required:\n\n- `source`: downloads the remaining Terraform files.\n- `package_location`: downloads the Ansible scripts.\n\nYou can customize the Terraform files and modify the deployment configuration.\nFor more information about managing and deploying Terraform files in\nGoogle Cloud, see [Terraform on Google Cloud documentation](/docs/terraform).\n\nAny modifications to the Terraform or Ansible IaC might cause issues during the\ndeployment process or cause your configuration to no longer follow the best\npractices and recommendations.\n| **Note** :\n|\n| - Workload Manager does not register any workloads deployed on your own using Terraform and it does not list these deployments on the Deployments dashboard. For these reasons, we recommend that only advanced users use the Download feature.\n| - When you use the downloaded Terraform file to deploy the SAP workload, Workload Manager does not use the service account you attached to the deployment. Workload Manager uses the credentials of the user to authenticate and to run the Terraform file. For more information about service account attachment, see [Service accounts](/workload-manager/docs/deploy/prerequisites#service-accounts)."]]