-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
feat: run pipeform when running terraform plan #981
base: main
Are you sure you want to change the base?
Conversation
This is still work in progress. TODO:
|
Before reviewing the implementation details, we need to discuss the specification. |
@@ -45,6 +45,78 @@ func getNextShellLevel() (int, error) { | |||
return shellVal, nil | |||
} | |||
|
|||
// ExecuteShellCommandWithPipe prints and executes the provided command with args and flags | |||
func ExecuteShellCommandWithPipe( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To pass the output of terrform plan
to pipeform
, I wanted to pass stdin and stdout to ExecuteShellCommand, but ExecuteShellCommand doesn't accept them.
So I defined a new function based on ExecuteShellCommand.
We should refactor later.
I replaced pipeform command with Go package. |
This is still work in progress.
what
Run
pipeform
when runningatmos terraform plan
.plan
, add the command line option-json
and-out <plan file>
terraform plan
and redirects the output to pipeformterraform show <plan file>
to output the conventional output ofterraform plan
why
Show the progress of
terraform plan
using pipeform.references
pipeform
for Terraform Operations #926