I never needed to switch Terraform versions in my prior environment. Instead, I always kept pace with the Terraform release schedule (well, mostly).
With the client I’m working with now, an older version is used in all of the CI/CD pipelines; something I plan to address later. Specifically, Terraform version 0.11.13 is used. Because I have both personal and client related work on my laptops, tfenv is a great tool that allows for switching around to different versions. The installation is simple:
- brew install tfenv
- tfenv install <X.X.X>
- tfenv use <X.X.X>
See the tfenv README for more information.