Skip to content

Commit a164e63

Browse files
committed
update Terraform install guide
1 parent d865762 commit a164e63

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

content/install-guides/terraform.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,27 @@ Terraform is available for Windows, macOS, Linux and supports the Arm architectu
3131

3232
[General installation information](https://developer.hashicorp.com/terraform/downloads) is available which covers all supported operating systems.
3333

34-
This article provides a quick solution to install Terraform for Ubuntu or macOS on Arm.
34+
This guide provides a quick solution to install Terraform for Ubuntu on Arm and macOS on Apple Silicon.
3535

3636
Confirm you are using an Arm machine by running:
37+
3738
```bash
3839
uname -m
3940
```
40-
The output should be:
41+
42+
For Linux, the output should be:
43+
4144
```output
4245
aarch64
4346
```
4447

45-
If you see a different result, you are not using an Arm computer running 64-bit Linux.
48+
For macOS, the output should be:
49+
50+
```output
51+
arm64
52+
```
4653

47-
### Download and Install for Ubuntu
54+
## Download and install Terraform for Ubuntu
4855

4956
The easiest way to install Terraform for Ubuntu on Arm is to use the zip file and copy the executable.
5057

@@ -65,7 +72,7 @@ unzip terraform_${TER_VER}_linux_arm64.zip
6572
sudo cp terraform /usr/local/bin/
6673
```
6774

68-
### Download and Install for macOS
75+
## Download and install Terraform for macOS
6976

7077
If you have [brew](https://brew.sh/) installed, installing Terraform for macOS is simple as:
7178

@@ -74,20 +81,30 @@ brew tap hashicorp/tap
7481
brew install hashicorp/tap/terraform
7582
```
7683

77-
If you don't have brew installed or prefer to directly install via binary, [Download Terraform for Arm64](https://developer.hashicorp.com/terraform/install#darwin) directly from the Terraform website.
84+
If you don't have brew installed or prefer to directly install via binary, you can download [Terraform for ARM64](https://developer.hashicorp.com/terraform/install#darwin) directly from the Terraform website.
7885

79-
## Confirm proper executable install.
86+
## Run the Terraform executable and print the version
87+
88+
After installing, you can enter the following command to verify the installation:
8089

81-
Upon completing install, from the command line, you can enter the following to verify proper installation.
8290
```bash { target="ubuntu:latest" }
8391
terraform version
8492
```
8593

86-
Running this command should return something similar to:
94+
The output will be similar to the output shown below.
8795

88-
```bash
96+
For Linux:
97+
98+
```output
99+
Terraform v1.10.5
100+
on linux_arm64
101+
```
102+
103+
For macOS:
104+
105+
```output
89106
Terraform v1.10.5
90107
on darwin_arm64
91108
```
92109

93-
If you instead receive an error, please try to reinstall again.
110+
You are now ready to use Terraform.

0 commit comments

Comments
 (0)