Terraform version manager inspired by rbenv
open sourceMITself-hostablefree
tfenv installs several versions of Terraform side by side and switches between them, in the style of rbenv. It picks the version from a .terraform-version file or an environment variable, can resolve the newest or oldest version a configuration's required_version allows (latest-allowed, min-required), pins the current version to a file, lists local and remote versions, and checks each download's hashes, verifying their signature with Keybase or GnuPG when available. It is a set of shell scripts for macOS, Linux and Windows under Git Bash.
Problems it solves
- different projects need different Terraform versions and switching by hand is a pain
- automatically use the Terraform version a repo pins in a file when I cd into it
- install the newest Terraform version my configuration's required_version allows
- check that the Terraform binary I download hasn't been tampered with
- CI should install exactly the Terraform version the project expects
- keep several Terraform releases installed side by side
Features
- install, use, uninstall and list Terraform versions
- reads .terraform-version files and TFENV_TERRAFORM_VERSION
- latest-allowed and min-required resolve versions from required_version
- tfenv pin writes the current version to .terraform-version
- verifies download hashes, with Keybase or GnuPG signature checks
- auto-install on first use, configurable architecture
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what tfenv does.
