craigmonson / colonize

A terraform tool to manage environment driven templating.
MIT License
20 stars 5 forks source link

Error on plans do not show TF error output #1

Closed jyore closed 7 years ago

jyore commented 7 years ago

When running a TF plan, and there is an error, the output only shows exit status 1, instead of the full TF error output.

Steps to reproduce:

Actual Output

$ colonize plan -e dev
Removing .terraform directory...
Building combined terraform variable assignment files...
Building combined variable files...
Building combined terraform files...
[]
Building combined derived files...
Building remote config script...
Fetching terraform modules...
Running remote setup
Disabling remote
Executing terraform plan
Plan failed to run: exit status 1

Desired Output

$ colonize plan -e dev
Removing .terraform directory...
Building combined terraform variable assignment files...
Building combined variable files...
Building combined terraform files...
[]
Building combined derived files...
Building remote config script...
Fetching terraform modules...
Running remote setup
Disabling remote
Executing terraform plan

module root: 1 error(s) occurred:

* module 'instance': unknown variable referenced: 'domain'. define it with 'variable' blocks

Plan failed to run: exit status 1
craigmonson commented 7 years ago

Definitely a bug :)