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 MacOS2curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"3sudo installer -pkg AWSCLIV2.pkg -target /
I use Brew on MacOS to install Terraform:
1brew upgrade2 3# Install Terraform4brew tap hashicorp/tap5brew install hashicorp/tap/terraform6 7# Upgrade Terraform8brew upgrade hashicorp/tap/terraform