Skip to content
/ kang Public

Use endless terraform versions in different shell sessions independently.

License

Notifications You must be signed in to change notification settings

brownhash/kang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kang

Explore the multiverse of Terraform with your terminal.

Install

git clone https://github.com/brownhash/kang
cd kang
make build
sudo mv bin/kang /usr/local/bin/kang

Or, if your system belongs to one of these architectures -

os architecture
darwin amd64
darwin arm64
linux amd64
linux arm
linux arm64

then,

git clone https://github.com/brownhash/kang
cd kang
sudo mv bin/kang_os_arch /usr/local/bin/kang_os_arch

Or,

Download from the Release Page!

and, if you want to run a specific version of Kang, then checkout to the respective tag and then use the above provided steps.

Usage

Fetch

Pre fetch a terraform version

kang fetch <terraform version>

Here,

  1. <terraform version> can be like 1.0.0 / 0.14.7 / 0.15.5 etc ...

Example,

kang fetch 1.0.0

Run

Pre fetch a terraform version

kang run <terraform version> <terraform command> <terraform arguments>

Here,

  1. <terraform version> can be like 1.0.0 / 0.14.7 / 0.15.5 etc ...

  2. <terraform command> can be like init / plan / apply / other terraform accepted commands

  3. <terraform arguments> can be like -var-file=terraform.tfvars / -out=plan.out / --auto-approve / other terraform accepted arguments

Example,

kang run 1.0.0 version