Skip to content

Tool which (1) check terraform_version in terraform.tfstate file stored on S3, (2) install the right version of terraform and make it default, (3) install suitable version of terragrunt

License

Notifications You must be signed in to change notification settings

mjaromi/terraswitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

terraswitch

Tool which (1) check terraform_version in terraform.tfstate file stored on S3, (2) install the right version of terraform and make it default, (3) install suitable version of terragrunt

prerequisites

  • awscli
  • egrep
  • jq
  • tfenv
  • tgenv

installation

$ wget -O /usr/local/bin/terraswitch https://raw.githubusercontent.com/mjaromi/terraswitch/master/terraswitch.sh
$ chmod +x /usr/local/bin/terraswitch

!!! Remember to change ENVIRONMENTS variable (line 11 in terraswitch.sh) !!!

usage

terraswitch

output

download: s3://bucket_path/terraform.tfstate to ./terraform.tfstate
Terraform v0.11.14 is already installed
Switching default version to v0.11.14
Switching completed
Terragrunt v0.18.7 is already installed
[INFO] Switching to v0.18.7
[INFO] Switching completed
Terraform v0.11.14
terragrunt version v0.18.7

About

Tool which (1) check terraform_version in terraform.tfstate file stored on S3, (2) install the right version of terraform and make it default, (3) install suitable version of terragrunt

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages