Skip to content

Instantly share code, notes, and snippets.

@mharrvic
Created November 26, 2022 08:45
Show Gist options
  • Save mharrvic/12b46934c608b0e21d6dd3e9fdeb1669 to your computer and use it in GitHub Desktop.
Save mharrvic/12b46934c608b0e21d6dd3e9fdeb1669 to your computer and use it in GitHub Desktop.
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