Thursday, May 28, 2020

Terraform Installation on Linux Machine


  • Download Terraform - https://www.terraform.io/downloads.html
  • Choose Linux OS 32/64 bit OS - Right click and say “copy link address”
  • On your Linux machine - Create a folder called terraform
  • Change Directory cd terraform on your Linux machine
  • Run this command - wget https://releases.hashicorp.com/terraform/0.12.26/terraform_0.12.26_linux_amd64.zip
    • Note: If wget is not present please install it using yum install wget or apt-get install wget command, verify your wget version by using wget --version
  • wget will download the terraform package from terraform website
  • unzip the downloaded package by using unzip command
    • If you don’t have unzip, zip command please install the same by using below commands
      • Linux - sudo yum install -y zip unzip
      • ubuntu - sudo apt-get install zip unzip
  • unzip terraform_0.12.2_linux_amd64.zip.
  • Set Path=/terraform:$PATH OR
  • If you wish to use export it globally use below command - I personally Recommend this
    • export PATH=/home/user-name/terraform/:$PATH
  • Check if Terraform is installed or not by using terraform -version command
  • Check If all Terraform commands are there, type terraform it will list all Terraform commands


No comments:

Post a Comment