Installing Terraform

We install Terraform for use with AWS.

We also ensure we have the aws command installed:

First we'll install AWS (https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-mac.html#cliv2-mac-install-cmd)

1# Install on MacOS
2curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
3sudo installer -pkg AWSCLIV2.pkg -target /

I use Brew on MacOS to install Terraform:

1brew upgrade
2 
3# Install Terraform
4brew tap hashicorp/tap
5brew install hashicorp/tap/terraform
6 
7# Upgrade Terraform
8brew upgrade hashicorp/tap/terraform

Don't miss out

Sign up to learn when new content is released! Courses are in production now.