Giter Site home page Giter Site logo

avinor / tau Goto Github PK

View Code? Open in Web Editor NEW
74.0 74.0 8.0 603 KB

Tau is a thin wrapper on top of terraform to manage multiple deployments, dependencies and secrets.

License: Apache License 2.0

Go 98.67% Makefile 0.66% Shell 0.67%
deprecated devops go infrastructure-as-code terraform

tau's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tau's Issues

Panic for tau init with terraform dependecy after version 0.12.10

From version 0.12.11 tau init panics for hashicorp registry modules with:

$tau init -f mymodule.hcl

- Loading module from terraform registry avinor/storage-account/azurerm, version 2.2.0
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xdf2a67]

goroutine 19 [running]:
github.com/hashicorp/terraform-svchost/disco.(*userAgentRoundTripper).RoundTrip(0xc0007be040, 0xc0000b7f00, 0xc0007be040, 0xbfee610ba99090b9, 0x388c626b8)
       /home/xxxxx/go/pkg/mod/github.com/hashicorp/[email protected]/disco/http_transport.go:29 +0x67
net/http.send(0xc0000b6100, 0x12242a0, 0xc0007be040, 0xbfee610ba99090b9, 0x388c626b8, 0x17f2ae0, 0xc0004d4030, 0xbfee610ba99090b9, 0x1, 0x0)
       /usr/local/go/src/net/http/client.go:252 +0x453
net/http.(*Client).send(0xc0007b00f0, 0xc0000b6100, 0xbfee610ba99090b9, 0x388c626b8, 0x17f2ae0, 0xc0004d4030, 0x0, 0x1, 0x5)
       /usr/local/go/src/net/http/client.go:176 +0xff
net/http.(*Client).do(0xc0007b00f0, 0xc0000b6100, 0x0, 0x0, 0x0)
       /usr/local/go/src/net/http/client.go:718 +0x45f
net/http.(*Client).Do(...)
       /usr/local/go/src/net/http/client.go:586

Find a way to handle deletion

Need a way for CI pipeline to handle deletion of resources. Either by prefixing files with "DESTROY" / "DELETE" and running destroy instead of apply, or handle that a file does not exist anymore

Implement hooks

Added the config.Hook model, but not implemented functionallity yet. Idea is to be able to define hooks for different events, like Prepare, Finish, etc, and optionally a set_env that will read output as KEY=VALUE and set environment variables when running terraform.

Detailed exit code

Possibility to get detailed exit code; for instance for plan is there any changes or not

Rewrite how it uses temp directory

Now it creates a temp folder that is generated based on source that should be deployed. This leads to some unwanted side effects. It works fine as long as same resources are deployed every time. Like for local folder:

tau init
tau plan

However if in local folder there is a file called hub.hcl and only that should be deployed again, then running tau plan -f hub.hcl afterwards generates a new temp folder and halting because temp folder is not initialized.

Should instead change so temp folder name is based on source file. Then it will use same temp folder every time and would work in both scenarios.

Run dependency resolving in separate shell processes

If including a dependency that has different environment variables it will now use the env variables from source that included it. Need to run dependencies in separate environments with their own variables.

Reuse code in commands

Too much duplicate code in commands. Reuse it better and make one command per terraform command, not a passthrough like now. Makes it easier to do minor customisations per command.

Allow to read input for terraform

go-cmd that is used for executing shell commands do not support reading input from commands. Need to look into how this can be done

Support including other merge targets

Supports _auto files today, also support including files manually from other folders.
Need to add additional variable name to source to tell which folder source is in

Prettier output

Make output prettier and more understandable. Group output from one module together and maybe reduce the output or use other libraries to prettify

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.