[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[[["\u003cp\u003eThis product is currently in a Pre-GA stage, meaning it is available "as is" and may have limited support, as detailed in the General Service Terms.\u003c/p\u003e\n"],["\u003cp\u003eYou can download the application template design as Terraform files, which include files for infrastructure code, outputs, variables, and input values.\u003c/p\u003e\n"],["\u003cp\u003eTo export your template design as Terraform files, navigate to the Templates section, select a Template ID, and click "Get Code".\u003c/p\u003e\n"],["\u003cp\u003eDeployment can be done using your own tools and workflows, or alternatively, through the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eTo use this product, you must have either the Application Admin or Application Operator role.\u003c/p\u003e\n"]]],[],null,["# Download and deploy Terraform\n\n| **Preview**\n|\n|\n| This product is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nIf you have your own deployment tools and workflows, you can download templates\nor applications as Terraform files.\n\nThe following files are generated:\n\n- `main.tf`: Infrastructure code that includes a module for each component in the template.\n- `outputs.tf`: Exposes information about infrastructure components that are deployed.\n- `variables.tf`: Declares name, type, and description for variables used in the `main.tf` file.\n- `input.tfvars`: Defines values for variables used in the `main.tf` file.\n- [`providers.tf`](/docs/terraform/terraform-overview#providers): Defines labels that help Terraform interact with Google Cloud APIs and resources.\n\nFor background information, see [Overview of Terraform on\nGoogle Cloud](/docs/terraform/terraform-overview).\n\nIf you don't have your own deployment tools and workflows, see [Deploy an\napplication from the\nGoogle Cloud console](/application-design-center/docs/deploy-from-console).\n\nBefore you begin\n----------------\n\nYou must have one of the following\n[roles](/application-design-center/docs/access-control) on the app-enabled\nfolder or management project:\n\n- Application Admin (`roles/designcenter.applicationAdmin`)\n- Application Editor (`roles/designcenter.applicationEditor`)\n\nExport Terraform code\n---------------------\n\nYou can export Terraform code generated from a template or from an application. \n\n### Template\n\n1. From the left menu, click **Templates**.\n\n\n [Go to Templates](https://console.cloud.google.com/products/design-center/templates)\n\n \u003cbr /\u003e\n\n2. Click the **Template ID** that you want to export.\n\n3. Click **Get Code**. A zip file is downloaded to your local computer. You\n can deploy the application using your own deployment tools and workflows.\n\n### Application\n\n1. From the left menu, click **Applications**.\n\n\n [Go to Applications](https://console.cloud.google.com/products/design-center/applications)\n\n \u003cbr /\u003e\n\n2. Click the **Application name** that you want to export.\n\n3. Click **Get Code**. A zip file is downloaded to your local computer. You\n can deploy the application using your own deployment tools and workflows.\n\nWhat's next\n-----------\n\n[Overview of Terraform on Google Cloud](/docs/terraform/terraform-overview)"]]