Terraform is a free and
opensource Infrastructure automation tool that allows to automate and manage IT
infrastructure over cloud and on premises environments using codes.
Step 1.
Setup Repository: Run the following commands
to setup repository for Terraform installation:
Run the below
command to install prerequisite for Terraform repository setup:
[root@linuxcnf ~]# dnf install -y yum-utils
…………………….
Installed:
yum-utils-4.0.21-3.el8.noarch
Complete!
[root@linuxcnf ~]#
|
Run the below
command to add Terraform repository:
[root@linuxcnf ~]# dnf config-manager --add-repo
https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
Adding repo from:
https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
[root@linuxcnf ~]#
|
Run the
below command to verify the Terraform repository:
[root@linuxcnf ~]# dnf makecache
CentOS Linux 8 - AppStream 8.2 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 9.7 kB/s | 3.9
kB 00:00
CentOS Linux 8 - Extras 3.8 kB/s | 1.5
kB 00:00
Hashicorp Stable - x86_64 1.1 MB/s | 1.3 MB 00:01
Metadata cache created.
[root@linuxcnf ~]#
|
Step 2. Terraform
Installations: Run the following dnf command to install Terraform
and dependencies:
[root@linuxcnf ~]# dnf install terraform -y
…………………….
Installed:
…………………….
terraform-1.6.6-1.x86_64
Complete!
[root@linuxcnf ~]#
|
Step 3. Validate Installation: Run
the following command to validate and check installed version of Terraform:
[root@linuxcnf ~]# terraform version
Terraform v1.6.6
on linux_amd64
[root@linuxcnf ~]#
|
No comments:
Post a Comment