How to install terraform in centos 7-DecodingDevOps

Steps to install terraform in centos 7

Terraform is open source infrastructure as a code tool. its really great tool for modelling your infrastructure through code. using terraform we can create resources in any cloud. terraform supports cloud providers like aws, azure, google cloud and many other. Terraform uses a declarative language known as hashicorp configuration language or hcl. In this blog post we are going to see how to install terraform in centos 7.

Download the Terraform Zip Package

execute below command to download the terraform package for centos 7

sudo yum update -y
sudo yum install wget unzip -y
sudo wget https://releases.hashicorp.com/terraform/0.12.18/terraform_0.12.18_linux_amd64.zip

Unzip the terraform Package

extract the downloaded terraform package

sudo unzip terraform_0.12.18_linux_amd64.zip

Move terraform to /usr/local/bin/

move extracted terraform to bin, so terraform will be installed in centos 7

sudo mv terraform /usr/local/bin/

that’s it we have successfully installed terraform in centos 7, lets verify the terraform.

Verify Terraform Version

enter terraform -v command to check installed terraform version.

terraform -v

Leave a Reply

Your email address will not be published. Required fields are marked *