How to upgrade terraform to a specific version?

You can use open source tools like tfenv to upgrade terraform to a specific version.

Step 1: Install tfenv where terraform is installed

Step 2: Upgrade terraform to a specific version

Note: If you are upgrading terraform version to a system where your terraform code is hosted, you also need to upgrade terraform code as each terraform major version has some syntactical changes in the way terraform configuration files are written. Please refer https://www.terraform.io/upgrade-guides/index.html for additional details.

Leave a Reply