tswitch

command module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

README

Terragrunt and Terraform switcher push

The tswitch command line tool switches between different versions of terraform and terragrunt looking for constraints in terragrunt.hcl file. If you wish to use other methods, there are other switches that you may use.

Installation

  1. Go to the Releases Page.
  2. Downloading the binary for your operating system: e.g., if you’re on a Mac, download tswitch_darwin_amd64; if you’re on Windows, download tswitch_windows_amd64.exe, etc.
  3. Rename the downloaded file to tswitch.
  4. Add execute permissions to the binary. E.g., On Linux and Mac: chmod u+x tswitch.
  5. Put the binary somewhere on your PATH. E.g., On Linux and Mac: mv tswitch /usr/local/bin/tswitch.

Usage

Just point to a terragrunt file, ex:

tswitch -terragrunt /some/path/terragrunt.hcl
# Help to see all available options
tswitch -help

Your terragrunt.hcl must have the constraints declared, ex:

terragrunt_version_constraint = ">= 0.26, < 0.27"
terraform_version_constraint  = ">= 0.13, < 0.14"

Configuration file

All command line options are also supported by a configuration file, ex:

terragruntFile: ./terragrunt.hcl
installDir: /tmp/tswitch/bin
cacheDir: /tmp/tsiwtch/data

Use the flag -config to set the path for a configuration file.

Issues

Please open issues here: New Issue

License

This code is released under the GNU GENERAL PUBLIC LICENSE. See LICENSE.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
pkg
db
hcl
io
lib
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL