> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deplify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Terraform Provider Blueprint

Need full control of what infrastructure gets deployed? Link your own Terraform repository to define all of your own infrastructure in AWS.  Let Deplify handle managing the deployments of that infrastructure across multiple environments.

## Getting Started

Deploying your terraform is easy, just follow the steps below.

<Steps>
  <Step title="Include an empty AWS provider in your Terraform repo.">
    ```java theme={null}
    provider "aws" {}
    ```

    During deployment, Deplify will handle overriding this provider to point to an s3 bucket in your AWS account to maintain the state of the infrastructure.  Builds will fail if you do not add this.
  </Step>

  <Step title="Create a Terraform Provider stack in Deplify">
    <Warning>
      **Note** Deplify will handle running `terraform init` & `terraform apply` so do not add them in your build configuration. Deplify will always use the latest version of Terraform when deploying.
    </Warning>

    * Hit the `Add a Stack` button in the environment view.
    * Choose the `Terraform Provider` blueprint.
    * If your project requires custom build commands, ensure you fill them in.  In most cases, you can leave them empty.
    * Click `Create Stack`
  </Step>

  <Step title="All Done">
    Your project will begin deployment.  Track the deployment in the dashboard.
  </Step>
</Steps>
