The Guided Deployment Automation tool in Workload Manager helps
you deploy workloads on Google Cloud. The export option in the tool lets you review and customize the generated infrastructure as code (IaC) before deploying the workload.

This document describes how to download the Terraform and Ansible configuration
files and deploy your workload on Google Cloud.

## Export Terraform and Ansible IaC

During the configuration, after you specify the deployment details for your
system, the Guided Deployment Automation tool provides you with
an option to download the Terraform and Ansible infrastructure
as code (IaC), instead of Workload Manager deploying the system
automatically.

![Download Terraform for deployment](https://docs.cloud.google.com/static/workload-manager/images/download-tf.png)

The downloaded Terraform file contains variables based on the configuration of
your deployment. The following variables download the Terraform and Ansible files
from a Google-owned repository, when required:

- `source`: downloads the remaining Terraform files.
- `package_location`: downloads the Ansible scripts.

You can customize the Terraform files and modify the deployment configuration.
For more information about managing and deploying Terraform files in
Google Cloud, see [Terraform on Google Cloud documentation](https://docs.cloud.google.com/docs/terraform).

Any modifications to the Terraform or Ansible IaC might cause issues during the
deployment process or cause your configuration to no longer follow the best
practices and recommendations.
**Note** :

- 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.
- 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](https://docs.cloud.google.com/workload-manager/docs/deploy/prerequisites#service-accounts).