Just a simple script for switching local terraform versions
- wget, unzip, curl
- put
tfenvin your $PATH
wget https://raw.githubusercontent.com/atanass/tfenv/master/bin/tfenv -P /usr/local/bin && chmod +x /usr/local/bin/tfenv
tfenv - shows currently installed versions
tfenv <version> - use specific version.
- If there is no terraform installed, the initial invocation will install version 0.14.0.
- If the version in the argument is not locally installed it will be downloaded.
- Terraform versions are stored in
/usr/local/bin/and controlled with a symbolic link.