Skip to content

Commit d865762

Browse files
Merge pull request #1641 from geremyCohen/tf_for_mac
Added install info for macos
2 parents 4a6540c + d042ce8 commit d865762

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

content/install-guides/terraform.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ 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 on Arm.
34+
This article provides a quick solution to install Terraform for Ubuntu or macOS on Arm.
3535

3636
Confirm you are using an Arm machine by running:
3737
```bash
@@ -44,7 +44,7 @@ aarch64
4444

4545
If you see a different result, you are not using an Arm computer running 64-bit Linux.
4646

47-
## Download and Install
47+
### Download and Install for Ubuntu
4848

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

@@ -65,8 +65,29 @@ unzip terraform_${TER_VER}_linux_arm64.zip
6565
sudo cp terraform /usr/local/bin/
6666
```
6767

68-
Confirm the executable is available.
68+
### Download and Install for macOS
6969

70+
If you have [brew](https://brew.sh/) installed, installing Terraform for macOS is simple as:
71+
72+
```bash
73+
brew tap hashicorp/tap
74+
brew install hashicorp/tap/terraform
75+
```
76+
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.
78+
79+
## Confirm proper executable install.
80+
81+
Upon completing install, from the command line, you can enter the following to verify proper installation.
7082
```bash { target="ubuntu:latest" }
7183
terraform version
7284
```
85+
86+
Running this command should return something similar to:
87+
88+
```bash
89+
Terraform v1.10.5
90+
on darwin_arm64
91+
```
92+
93+
If you instead receive an error, please try to reinstall again.

0 commit comments

Comments
 (0)