avinor / tau Goto Github PK
View Code? Open in Web Editor NEWTau is a thin wrapper on top of terraform to manage multiple deployments, dependencies and secrets.
License: Apache License 2.0
Tau is a thin wrapper on top of terraform to manage multiple deployments, dependencies and secrets.
License: Apache License 2.0
Running fmt will create a file that is tagged as DELETE_
go-cmd library does not support Windows
Add a flag that can forward arguments to terraform.
Create some migration option for modules
Add a block to manage lifecycle of module. For instance to ignore destroy of certain resources etc
Support script attribute that can be any script available with go-getter
For azurerm provider feature attriubute must be set. Tau has no support for this.
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
When using a local source for module it will create a symlink to the folder in temporary directory instead of copying the files. This is a problem with go-getter not supporting copying files.
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
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.
If merging attributes that already exist it will fail. If it is a map it should try to just merge maps
Possibility to get detailed exit code; for instance for plan is there any changes or not
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.
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.
Use example folder in modules to create example config for a module
Implement import command wrapper
Validate configuration variables
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.
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
Add cache for tf plugins
When using -f argument it purges all folder. Only purge the one its running
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
If terraform registry module is not found it does not fail anymore
Most of the examples are focussing on Azure as the cloud service provider. Nevertheless tau
seems to be generic.
I am wondering how I could integrate an AWS backend to store the terraform state?
Referencing a single git file in hoot.script does not work, it will not download the file. Have to use raw http link. See hashicorp/go-getter#98
Make output prettier and more understandable. Group output from one module together and maybe reduce the output or use other libraries to prettify
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.