Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questo documento descrive come utilizzare lo strumento di automazione del deployment guidato in Workload Manager per scaricare Terraform e Ansible Infrastructure as Code (IaC) ed eseguire il deployment del tuo carico di lavoro su Google Cloud.
Esportare Terraform e Ansible IaC
Durante la configurazione, dopo aver specificato i dettagli di deployment per il sistema, lo strumento di automazione del deployment guidato ti offre la possibilità di scaricare Terraform e Ansible Infrastructure as Code (IaC), anziché consentire a Workload Manager di eseguire il deployment automatico del sistema.
Il file Terraform scaricato contiene variabili basate sulla configurazione del deployment. Le seguenti variabili scaricano i file Terraform e Ansible da un repository di proprietà di Google, se necessario:
source: scarica i file Terraform rimanenti.
package_location: scarica gli script Ansible.
Puoi personalizzare i file Terraform e modificare la configurazione del deployment.
Per ulteriori informazioni sulla gestione e sul deployment dei file Terraform in
Google Cloud, consulta la documentazione di Terraform su Google Cloud .
Eventuali modifiche all'IaC di Terraform o Ansible potrebbero causare problemi durante la procedura di deployment o fare in modo che la configurazione non segua più le best practice e i consigli.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 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)."]]