DEV Community

Marcos Henrique
Marcos Henrique

Posted on

4

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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️