Last active
February 16, 2024 20:24
-
-
Save todd-dsm/1dc120506e89ec36d4d9a05ccb93f68c to your computer and use it in GitHub Desktop.
tfenv quick setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If EXISTING install start here | |
# Dump the current Terraform binary | |
brew unlink terraform | |
brew uninstall terraform | |
# If NEW install start here | |
# Install tfenv | |
brew install tfenv | |
--- | |
# Run tfenv & install the latest version | |
# The first non-alph/beta will always be 'latest' | |
% tfenv list-remote | head -15 | |
1.8.0-alpha20240214 | |
1.8.0-alpha20240131 | |
1.7.3 <- latest | |
1.7.2 | |
1.7.1 | |
1.7.0 | |
1.7.0-rc1 | |
1.7.0-beta1 | |
... | |
1.7.0-alpha20231025 | |
1.6.6 | |
1.6.5 | |
# OPT-1: designate a specific non-alpha/beta version | |
% tfenv install 1.6.6 # example; "latest" is good for new projects could be a version number too | |
% tfenv use 1.6.6 | |
% terraform version | |
Terraform v1.6.6 | |
# # OPT-2, just roll with the "latest" | |
% tfenv install latest # example; "latest" is good for new projects could be a version number too | |
% tfenv use latest | |
% terraform version | |
Terraform v1.7.3 | |
on darwin_arm64 | |
# Initialize the build | |
make init |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment