Terraform installation

1 min read

Install Terraform
First, install repository addition dependencies:
sudo apt update
sudo apt install software-properties-common gnupg2 curl
Now import repository GPG key
curl https://apt.releases.hashicorp.com/gpg | gpg --dearmor > hashicorp.gpg
sudo install -o root -g root -m 644 hashicorp.gpg /etc/apt/trusted.gpg.d/
Expected execution output:
Now install terraform on your Ubuntu Linux system:
sudo apt install terraform
Check the version of terraform installed on your system
$ terraform --version
Terraform v1.5.5
on linux_amd64
0
Subscribe to my newsletter
Read articles from Sujit Sahoo directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
