Install DevOps IaC tool “Terraform” on Centos 7

0 / 371
Terraform
  What is Terraform?  
Terraform

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 terraform.com.   In this article we will learn how to install devops Infrastructe as code tool terraform on Centos 7   Pre-requisites:  
  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 terraform.io    Access the link -> https://www.terraform.io/downloads.html 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 devops.hostbread.com    
[root@devops ~]# hostname
devops.hostbread.com
[root@devops ~]#

[root@devops ~]# wget https://releases.hashicorp.com/terraform/0.12.24/terraform_0.12.24_linux_amd64.zip
    Unzip and copy it in /usr/local/bin    
[root@devops ~]# unzip terraform_0.12.24_linux_amd64.zip
Archive: terraform_0.12.24_linux_amd64.zip
inflating: terraform
[root@devops ~]# cp terraform /usr/local/bin/
[root@devops ~]# which terraform
/usr/local/bin/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.    

Comments

comments


***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