You can support us by downloading this article as PDF from the Link below. Download the guide as PDF
install terraform fedora 29 fedora 28

Terraform is a cloud-agnostic Infrastructure automation tool created by the awesome HashiCorp Engineers to help you with the infrastructure resource management using code. Terraform allows you build, change, and version infrastructure deployed on popular cloud environments and on premise . This short article will show you how to install terraform on CentOS 8 Linux system.

Install Terraform on CentOS 8

Before you get started ensure you have a sudo user that will be used to install Terraform on CentOS 8 Linux machine. Below few steps should work fine for you.

Step 1: Install wget

We’ll use wget command to download the latest binary archive of Terraform.

sudo dnf -y install wget

Step 2: Install Terraform on CentOS 8

The next step is to install Terraform on a CentOS 8 Linux. But first download binary archive file.

TER_VER=`curl -s |  grep tag_name | cut -d: -f2 | tr -d \"\,\v | awk '{$1=$1};1'`

Extract the downloaded archive

$ unzip terraform_${TER_VER}
 inflating: terraform

Then move the binary file to directory in your PATH.

sudo mv terraform /usr/local/bin/

Step 3: Confirm Terraform Installation on CentOS 8

Check the version of Terraform to validate our installation:

$ terraform version
Terraform v0.12.29
+ provider.hcloud v1.16.0

You can then refer to some of the guides we have on using Terraform.

How to Provision VMs on KVM with Terraform

Hetzner cloud with Terraform

How To Provision VMs on oVirt / RHEV with Terraform

Deploy VM Instances on Hetzner Cloud with Terraform

Build AWS EC2 Machine Images (AMI) With Packer and Ansible

Other Learning materials include:

As an appreciation for the content we put out,
we would be thrilled if you support us!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


Please enter your comment!
Please enter your name here