Terraform manages infrastructure as code (IaC).
-
Download the Terraform binary:
curl -fsSL https://releases.hashicorp.com/terraform/1.5.7/terraform_1.5.7_linux_amd64.zip -o terraform.zip
-
Install the unzip tool (if not installed):
sudo apt install -y unzip
-
Extract and move the binary:
unzip terraform.zip sudo mv terraform /usr/local/bin/
-
Verify installation:
terraform --version