Skip to content

Instantly share code, notes, and snippets.

@qb-abdul
Last active November 1, 2020 15:28
Show Gist options
  • Save qb-abdul/bbdc8401d2d881e917ab6eb9a771dc97 to your computer and use it in GitHub Desktop.
Save qb-abdul/bbdc8401d2d881e917ab6eb9a771dc97 to your computer and use it in GitHub Desktop.
Goto link https://www.terraform.io/downloads.html and download the terraform to your local machine and cd to the directory annd follow step 2
step 1: download Terraform using this command: curl
MAC URL:
curl -o "/tmp/terraform.zip" https://releases.hashicorp.com/terraform/0.13.5/terraform_0.13.5_darwin_amd64.zip
Linux URL:
curl -o "/tmp/terraform.zip" https://releases.hashicorp.com/terraform/0.13.5/terraform_0.13.5_linux_amd64.zip
step 2: Install a program called ‘unzip’ in order to unpack
Redhat Linux:
sudo yum install unzip
Mac:
brew install unzip
step 3: once installed, unpack the Terraform download: unzip
unzip /tmp/terraform.zip && rm -rf /tmp/terraform.zip
step 4: Move the terrform binary to bin directory
MAC:
mv terraform /usr/local/bin/
step 5: Test that Terraform is installed by typing this command:
terraform version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment