Reading time: | 30 min |
Last updated: | 27 Feb 2025 |
Test status: |
Reading time: |
30 min |
Last updated: |
27 Feb 2025 |
Test status: |
Author: | Jason Andrews, Arm
|
Official docs: | View |
Tags: |
Author: |
Official docs: |
View |
Tags: |
This guide is intended to get you up and running with this tool quickly with the most common settings. For a thorough review of all options, refer to the official documentation.
Terraform automates cloud infrastructure. It is an infrastructure as code tool.
Terraform is available for Windows, macOS, Linux and supports the Arm architecture.
General installation information is available which covers all supported operating systems.
This guide provides a quick solution to install Terraform for Ubuntu on Arm and macOS on Apple Silicon.
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
The easiest way to install Terraform for Ubuntu on Arm is to use the zip file and copy the executable.
The installation options with the Ubuntu package manager at time of writing do not work well, but please try them as they may improve.
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/
If you have brew installed, installing Terraform for macOS is simple as:
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.
After installing, you can enter the following command to verify the installation:
terraform version
The output will be similar to the output shown below.
For Linux:
Terraform v1.10.5
on linux_arm64
For macOS:
Terraform v1.10.5
on darwin_arm64
You are now ready to use Terraform.
How would you rate this tool quick-install guide?
What is the primary reason for your feedback ?
Thank you! We're grateful for your feedback.