Jenny Brown
07/09/2021, 10:16 PMtfenv
.
On mac, you can get it with brew install tfenv
- it looks in the current directory for a .terraform-version
file and automatically pulls the right version when you run terraform plan
etc. This way the command line stays standard, and versions are per-directory, which gives us the ability to support a different version for a contributed connector if necessary. I’ve used tfenv in my previous work. It elegantly solves the versioning issue while enabling flexibility and growth.
I’m picking up @s’s PR stubbing out terraform for ssh tunnel work, and we’ll be switching that to recommend the use of tfenv rather than the docker container, for version consistency. Feedback welcome if you see potential issues with this.