I have a lot of Terraform modules written in Terraform 0.11 using gcp-provider of Terraform and want to upgrade the same to Terraform 0.12.
For this purpose, I need to keep both the versions installed on my system and use the version according to the version the module is written in.
I will go one by one in every module and upgrade the module using terraform 0.12upgrade
to be compatible with Terraform 0.12 as per this documentation.
How to safely keep two versions of Terraform in one System?
brew install tfenv
enables you to do something liketfenv install min-required && tfenv use 0.15.4
. Great for switching between projects easily! – Healthful