Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Ce document explique comment utiliser l'outil d'automatisation du déploiement guidé dans Workload Manager pour télécharger la solution Infrastructure as code (IaC) Terraform et Ansible, puis déployer votre charge de travail sur Google Cloud.
Exporter l'IaC Terraform et Ansible
Lors de la configuration, après avoir spécifié les détails de déploiement de votre système, l'outil d'automatisation guidée du déploiement vous permet de télécharger l'infrastructure en tant que code (IaC) Terraform et Ansible, au lieu que le gestionnaire de charges de travail déploie le système automatiquement.
Le fichier Terraform téléchargé contient des variables en fonction de la configuration de votre déploiement. Les variables suivantes téléchargent les fichiers Terraform et Ansible à partir d'un dépôt appartenant à Google, si nécessaire:
source: télécharge les fichiers Terraform restants.
package_location: télécharge les scripts Ansible.
Vous pouvez personnaliser les fichiers Terraform et modifier la configuration de déploiement.
Pour en savoir plus sur la gestion et le déploiement de fichiers Terraform dansGoogle Cloud, consultez la documentation Terraform sur Google Cloud .
Toute modification de l'IaC Terraform ou Ansible peut entraîner des problèmes lors du processus de déploiement ou empêcher votre configuration de respecter les bonnes pratiques et recommandations.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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)."]]