How to install Terraform on Ubuntu 18.0.4

Please find steps for installing Terraform for the session. You can install this on any of your existing Ubuntu EC2 instance.

Terraform is used for provisioning infrastructure on Cloud. you don't need to create manually any resource in AWS.

Create a working directory
sudo mkdir -p /opt/terraform
cd /opt/terraform

Download Terraform from Hasicorp website
sudo wget

sudo apt-get install unzip -y

Unzip Terraform Zip file
sudo unzip

Add terraform to PATH
sudo vi ~/.bashrc
   add below entry in the last line
   export PATH="/opt/terraform:$PATH"

source ~/.bashrc

terraform -version
this should show version of Terraform.

Post a Comment