Created
November 26, 2022 08:45
-
-
Save mharrvic/12b46934c608b0e21d6dd3e9fdeb1669 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Using asdf, we can install specific arm64 version of terraform cli for m1 macs | |
1. Open your terminal and run this | |
```sh | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf | |
``` | |
2. Add asdf plugin to your .zshrc config | |
```sh | |
plugins=(asdf) | |
``` | |
3. Reload your zsh config | |
```sh | |
source ~/.zshrc | |
``` | |
4. Install asdf-hashicorp plugin | |
```sh | |
asdf plugin-add terraform https://github.com/asdf-community/asdf-hashicorp.git | |
``` | |
5. Install terraform with specific arm64 version | |
```sh | |
export ASDF_HASHICORP_OVERWRITE_ARCH="amd64" | |
asdf install terraform latest | |
asdf global terraform latest | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment