How to Manually Install Terraform in Ubuntu? A Step-By-Step Guide
The following are the steps to install the terraform in ubuntu:
Step 1: Search for the latest version
- Go to any browser and search for the latest version of Terraform.
- Choose the official website HashiCorp AI to install Terraform.
- Go into the Linux section then select Ubuntu/Debian and copy all three commands.
Step 2: Go into Command Prompt
- Firstly we will create a new directory and then use this using following command:
mkdir terraform
- Navigate to the created terraform directory with the following command:
cd terraform/
Step 3: Install Terraform
- You can install terraform in ubuntu by pasting all three commands one by one which you have copied earlier in step-1.
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
- Try on running the following command, the output looks as shown in the following screenshot:
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
- Update and install the terraform with running the following command:
sudo apt update && sudo apt install terraform
Step 4: Verifying the Terraform Installation
You can check the installed version by using this command
terraform --version
- Congratulation you have successfully installed terraform in ubuntu
How To Install Terraform In Ubuntu
Terraform is an open-source infrastructure as code (IaC) tool that enables users to define and provision infrastructure using a declarative configuration language. It simplifies the process of managing and scaling infrastructure by allowing you to describe your infrastructure necessities in a configuration file. In this article, you will get to know about Terraform, and why we need Ubuntu to install Terraform, we will also discuss major issues that you will face during installation and methods to resolve them.
Table of Content
- What is Terraform?
- Why Use Ubuntu to install Terraform?
- How to Manually Install Terraform in Ubuntu? A Step-By-Step Guide
- How to Configure Terraform In Ubuntu? A Step-By-Step Guide
- How to Create Terraform Configuration Files? A Step-By-Step Guide
- How To Update Terraform Version In Ubuntu? A Step-By-Step Guide
- Troubleshooting Common Issues of Terraform
- Conclusion
- Installation of Terraform In Ubuntu – FAQs