Install DevOps IaC tool “Terraform” on Centos 7

0 / 263


What is Terraform?






Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions.


Configuration files describe to Terraform the components needed to run a single application or your entire datacenter. Terraform generates an execution plan describing what it will do to reach the desired state, and then executes it to build the described infrastructure. As the configuration changes, Terraform is able to determine what changed and create incremental execution plans which can be applied.


The infrastructure Terraform can manage includes low-level components such as compute instances, storage, and networking, as well as high-level components such as DNS entries, SaaS features, etc.


Above definition is from


In this article we will learn how to install devops Infrastructe as code tool terraform on Centos 7




  1. VM with Centos 7 installed
  2. Internet connection to download terraform instlaller package


Depending on your Operating System, we can choose the terrafrom installer from download page of 


Access the link -> and download respective  OS installer.


In our case and in this article we will use Linux installer.


Install terraform

Install terraform



Using wget, download the terraform using centos7 VM having hostname



[root@devops ~]# hostname
[root@devops ~]#

[root@devops ~]# wget



Unzip and copy it in /usr/local/bin



[root@devops ~]# unzip
inflating: terraform
[root@devops ~]# cp terraform /usr/local/bin/
[root@devops ~]# which terraform
[root@devops ~]# terraform -v
Terraform v0.12.24



In this article we have installed Terraform on Centos 7, Linux OS.
In next article we will provision an Nginx server using docker on Centos 7, Linux OS.


Subscribe and follow Golibrary on Facebook and Linkedin to get all the updates.





***Linux, Cloud & Devops Architect & Technical Content Writer*** I am a Linux Enthusiast and Supporter/Promoter of Open Source Technology with over 12+ years of experience in Linux, Cloud and Devops. I am A Technical Content writer for various sites like : Hostbread & Golibrary

Related Posts