tarragon

command module
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 22 Imported by: 0

README

tarragon

Quick Terraform actions across multiple projects.

Written in Go.

Why?

You have multiple Terraform projects, but they're prototypes, quick tests, and don't warrant a dedicated deployment pipeline. So, you need to push them via the command line.

You want to quickly validate/plan/apply projects without constantly changing to different project directories.

You need to run apply on multiple projects at the same time because your latest code changes affect both services, and you don't want to forget to push one without the other.

Tarragon is a TUI application that lets you select multiple projects to perform simultaneous Terraform actions on.

Where?

If you have Go installed, run:

go install github.com/sho-87/tarragon@latest

Otherwise, you can download the application for your operating system on the Releases page.

How?

Tarragon is designed to work with related projects, so assumes that your projects are nested somewhere inside a common parent directory. Example:

Services
|--- Project1
|--- Project2
|--- OtherService
     |--- Project3

First, make sure the Tarragon executable is available on your path, or otherwise callable from your command line.

Run tarragon in your command line, which will bring up the UI and find all nested projects from your current working directory.

You can also supply a different root directory using tarragon --path "path/to/projects"

General Keybinds

(full list of keybinds can be found using ?)

Run validate/plan/apply actions using v, p, and a on a highlighted project.

You can select multiple projects using space and run actions on them at the same time using the capitalized keybinds V, P, and A.

Note: apply will always run with the --auto-approve flag, so it's recommend to first run plan on the project and view the output (tab)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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