Deploy Mage to your cloud provider using Terraform.

Cloud providers currently supported with Mage Terraform scripts:

  • AWS
  • Azure
  • GCP
  • DigitalOcean

Pre-install

Clone Mage’s Terraform template repository:

git clone https://github.com/mage-ai/mage-ai-terraform-templates.git

Install Terraform CLI

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

Windows

Follow Microsoft’s instructions to install Terraform on Windows.

Errors

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

Error: Incompatible provider version

Provider registry.terraform.io/hashicorp/template 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: