About this Install Guide

This guide shows you how to install and use the tool with the most common configuration. For advanced options and complete reference information, see the official documentation. Some install guides also include optional next steps to help you explore related workflows or integrations.

Terraform automates cloud infrastructure. It is an infrastructure as code (IaC) tool.

Terraform is available for Windows, macOS, Linux and supports the Arm architecture. For general installation information that covers all supported operating systems, see the Terraform documentation .

In this guide, you’ll learn how to install Terraform for Ubuntu on Arm and macOS on Apple Silicon.

Before you begin

Confirm you are using an Arm machine by running:

    

        
        
uname -m

    

For Linux, the output should be:

    

        
        aarch64

        
    

For macOS, the output should be:

    

        
        arm64

        
    

Download and install Terraform for Ubuntu

To install Terraform for Ubuntu on Arm, use a zip file and copy the executable.

Make sure unzip, curl, and wget are available.

    

        
        
sudo apt install -y unzip curl wget

    

Download and install the latest version. There is just one executable to copy to the desired location.

    

        
        
TER_VER=`curl -s https://api.github.com/repos/hashicorp/terraform/releases/latest | grep tag_name | cut -d: -f2 | tr -d \"\,\v | awk '{$1=$1};1'`
wget https://releases.hashicorp.com/terraform/${TER_VER}/terraform_${TER_VER}_linux_arm64.zip
unzip terraform_${TER_VER}_linux_arm64.zip
sudo cp terraform /usr/local/bin/

    

Download and install Terraform for macOS

If you have brew installed, you can use it to install Terraform for macOS with the following commands:

    

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

    

If you don’t have brew installed or prefer to directly install via binary, you can download Terraform for ARM64 directly from the Terraform website.

Verify Terraform installation

After installing, you can enter the following command to verify the installation:

    

        
        
terraform version

    

The output for Linux is similar to:

    

        
        Terraform v1.14.9
on linux_arm64

        
    

The output for macOS is similar to:

    

        
        Terraform v1.14.9
on darwin_arm64

        
    

You are now ready to use Terraform.


Give Feedback

How would you rate this tool quick-install guide?