Note-to-Self: update terraform using CLI

How to update terraform on Ubuntu using CLI…

Why updating?

ubuntu@terraform:~$ terraform –version
Terraform v1.3.1
on linux_arm64

Your version of Terraform is out of date! The latest version
is 1.3.9. You can update by downloading from https://www.terraform.io/downloads.html

Downloading and unzipping the update

ubuntu@terraform:~$ curl https://releases.hashicorp.com/terraform/1.3.9/terraform_1.3.9_linux_arm64.zip –output terraform_1.3.9_linux_arm64.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16.7M 100 16.7M 0 0 24.6M 0 –:–:– –:–:– –:–:– 24.6M
ubuntu@terraform:~$ unzip terraform_1.3.9_linux_arm64.zip
Archive: terraform_1.3.9_linux_arm64.zip
inflating: terraform

Move to the correct location

ubuntu@terraform:~$ sudo mv terraform /usr/local/bin
ubuntu@terraform:~$ terraform –version

Terraform v1.3.9
on linux_arm64

  • provider registry.terraform.io/hashicorp/azurerm v3.46.0
    ubuntu@terraform:~$

Posted

in

, ,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.