-
-
Notifications
You must be signed in to change notification settings - Fork 980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to prefix *-all terraform output with working-dir label #1194
Comments
Linking to a related issue, #74. I think both options would be useful. |
This seems like a good idea. However, it needs a little more thought, as for some commands (e.g., |
+1 i want to see this as a feature. even if its not enabled by default. something like |
+1 for this. Even something at the top of the plan just saying |
I've found I can only use run-all commands with |
We are also plagued by this problem. I had these ideas:
Where does this "working-dir label" come from exactly? |
I really want this fixed but while it's not there's a possible workaround... terraform {
extra_arguments "plan_file" {
commands = ["plan"]
arguments = ["-out=${get_terragrunt_dir()}/tfplan.binary"]
}
} You then do Then for each tfplan.binary you have now you can do a |
Hi there, just would like to share our workaround for this case:
Result:
|
@rmammadli I feel like that's only a partial solution, and unfortunately does not address the primary use case in the OP. Configs run in parallel and their output is interleaved. Simply outputting the path before/after any given config runs is most useful when run one at a time. This feature request is primarily about running multiple configs at once in parallel, where it is unknown which line of output is associated to any particular config. |
Sometime the text output of
|
Right now, all terraform output is unmodified, which makes a lot of sense for regular terraform commands because they are only working on one config at a time and the output can be captured/used for other purposes.
But with the *-all commands, the terraform output of parallel configs just blends together and it is very difficult to determine what line of output is associated with which config.
For example, running
validate-all
, I don't know which config succeeded and which failed.I'm suggesting that, only for the
*-all
commands, prefix terraform output the same way the terragrunt output is handled, so we get something like this...This way we can filter the log very easily to see all the messages for a given config.
The text was updated successfully, but these errors were encountered: