Install Terraform binary in linux:
Download link: https://developer.hashicorp.com/terraform/install?product_intent=terraform
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo <https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo>
sudo yum -y install terraform
To write code for terraform we can use .tf file and .tf.json file. Both are supported and Both formats are different.
Terraform is a popular Infrastructure as Code (IaC) tool that allows you to define and provision infrastructure using a high-level configuration language. Here’s a brief introduction to the terraform plan, terraform init, and terraform apply commands, along with their differences:
terraform initterraform init is the command used to initialize a working directory containing Terraform configuration files. It sets up the necessary backend and downloads the required provider plugins.
terraform init
terraform init when you first clone a repository containing Terraform configurations.