Skip to content

Things I keep Forgetting

Estimated time to read: 1 minute

Last Updated: May, 2024

tfenv

I have an Apple Mac M1 which uses the arm64 architecture and recently needed to use a Terraform provider which was only compiled for an amd64 architecture. I was told about tfenv which allowed me to quickly swap the Terraform binary to one which supports amd64

This is the error I initially saw.

Info

I had to first uninstall Terraform before installing the new versions with tfenv. I also had to brew reinstall perl because of some shasum errors.

  • Install tfenv to manage the environments
brew install tfenv
  • Install terraform for amd64
TFENV_ARCH=amd64 tfenv install 1.6.2
  • Install terraform for arm64
TFENV_ARCH=arm64 tfenv install 1.6.3
  • You can use the version you need

arm64

tfenv use 1.6.3

amd64

tfenv use 1.6.2

Comments