DEV Community

Marcos Henrique
Marcos Henrique

Posted on

Working with multiple terraform's versions like a charm

If you are a node.js developer, you'd listen something about NVM to manage many node.js versions.

Having seen this, with the help of my tech lead @wayne, I found a way to move between terraform's versions, as a time traveler in the best style Netflix 's Dark series.

tfswitch đź‘ľ

The tfswitch command line tool lets you switch between different versions of terraform. If you do not have a particular version of terraform installed, tfswitch lets you download the version you desire. The installation is minimal and easy. Once installed, simply select the version you require from the dropdown and start using terraform.

curl -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh | bash
sudo bash install.sh
Enter fullscreen mode Exit fullscreen mode

After a few minutes just run the command below

tfswitch
Enter fullscreen mode Exit fullscreen mode

And now you are able to navigate without a DeLorean through the terraform versions

Top comments (0)