Skip to content

Terraform plugin with go build for the asdf version manager

License

Notifications You must be signed in to change notification settings

tsub/asdf-terraform-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

asdf-terraform-build

Terraform plugin with go build for the asdf version manager

Japanese post: Apple Silicon Mac で複数 Terraform バージョンを管理するために asdf-terraform-build を作った | tsub's blog

Motivation

I want to manage multiple versions of Terraform on my Apple Silicon Mac.

Terraform currently does not provide pre-built binaries for Apple Silicon. (see hashicorp/terraform#27257)

Also, asdf-hashicorp terraform plugin only supports binary installations. The same is true for tfenv.

Terraform provided by Homebrew supports Apple Silicon, but is not suitable for multiple version control.

That's why I created an asdf plugin that allows you to build Terraform from source and manage multiple versions.

⚠️ As Terraform begins offering pre-built binaries for Apple Silicon, this plugin will probably be archived.

Requirements

  • asdf
  • Go
  • jq
  • git

Installation

$ asdf plugin add terraform-build https://github.com/tsub/asdf-terraform-build.git

Usage

$ asdf install terraform 1.0.0
$ asdf local terraform 1.0.0
$ terraform version
Terraform v1.0.0
on darwin_arm64

Read the asdf documentation for more details on how to use it.

About

Terraform plugin with go build for the asdf version manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages