Hi, Everyone in the previous blog I discussed the Terraform basics. You can check out by using the link: Terraform-Basics
This blog will show How to install Terraform on the Linux ( Ubuntu ) server.
Steps to Install the Terraform:
Step 1: Go over the Ubuntu Machine and use the below command to update the server.
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common
Step 2: Install the Hashicorp GPG key:
wget -O- https://apt.releases.hashicorp.com/gpg | \
gpg --dearmor | \
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null
Step 3: Verify the key's fingerprint.
gpg --no-default-keyring \
--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \
--fingerprint
Note: Please confirm your output looks like the screenshot shared above.
Step 4: Add the official HashiCorp repository to your system.
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
Step 5: Update the system with a new repo and install the Terraform.
sudo apt-get update
sudo apt-get install terraform
Step 6: Verify Terraform is installed successfully in the system:
terraform --version
terraform -help
Thank you for giving your precious time to read this blog/article and if any suggestions or improvements are required on my blogs feel free to connect on LinkedIn Unnati Gupta. Happy Learni**ng ๐ฅ๐**!!**