Skip to main content

Command Palette

Search for a command to run...

Installing Terraform on Ubuntu 22.04

Published
1 min read
K

Computer Science graduate who's had a taste of DevOps and wants more. This blog will serve as a journal regarding my journey into this field of delight.

First add HashiCorp’s GPG key.

curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -

Now add HashiCorp’s repository to Ubuntu.

sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"

Update system packages and then install Terraform via apt.

sudo apt update; sudo apt install terraform -y

Check the Terraform version to confirm it has been installed.

terraform -version

Add Terraform to your resume and go apply for DevOps jobs.

Installing Terraform on Ubuntu 22.04