Deploy Mage to your cloud provider using Terraform.

Cloud providers currently supported with Mage Terraform scripts:

  • AWS
  • Azure
  • GCP
  • DigitalOcean


Clone Mage’s Terraform template repository:

git clone

Install Terraform CLI

brew tap hashicorp/tap && brew install hashicorp/tap/terraform


Follow Microsoft’s instructions to install Terraform on Windows.


If you’re installing Terraform using Homebrew on an Apple M1 laptop, you may get this error:

Error: Incompatible provider version

Provider v2.2.0 does not have a package available for your current platform, darwin_arm64.

Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. 
Other versions of this provider may have different platforms supported.

Follow this guide to fix the issue.

Cloud specific Terraform instructions

Read the following documentation for the cloud provider of your choice: