tau

command module
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

README

CircleCI Go Report Card GoDoc

Tau

Tau (Terraform Avinor Utility) is a thin wrapper for Terraform that makes deployment and secret handling easier. The basic idea is taken from Terragrunt to keep code DRY, however it does some changes to how remote state and data sources are handled. It tries to not change terraform to much and use the existing functionallities.

NOTE: This is still in development.

Installation

  1. Tau requires terraform 0.12+, download and install first
  2. Download tau from Release page for your OS
  3. Rename file to tau and add it to your PATH

Configuration

For a simple example how to get started create a file example.hcl (or example.tau) and include a module and some inputs:

module {
    source = "avinor/storage-account/azurerm"
    version = "1.0.0"
}

inputs {
    name = "example"
    resource_group_name = "example-rg"
    location = "westeurope"

    containers = [
        {
            name = "example"
            access_type = "private"
        },
    ]
}

Run tau init in same folder and it will download module avinor/storage-account/azurerm, create input file and run terraform init.

Compared to terragrunt

Terragrunt is a nice tool to reuse modules for multiple deployments, however we disagreed on some of the design choices and also wanted to have a better way to handle secrets.

  • backend in module
  • data sources

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg
helpers/ui
Package ui is an abstraction on dealing with writing and reading from ui / cli.
Package ui is an abstraction on dealing with writing and reading from ui / cli.
terraform
Package terraform initializes an engine that execute terraform commands and generate terraform code.
Package terraform initializes an engine that execute terraform commands and generate terraform code.

Jump to

Keyboard shortcuts

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