-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Add options to terraform show
to have parity with terraform plan
output
#21596
Comments
Hi @devonbleak! Thanks for requesting this. We noticed shortly after the 0.12.0 release that the We do intend to update it to use the same rendering codepath as That it shows resources that aren't changing is a bug and it should be fixed as part of switching to the new codepath. That arises because the Terraform v0.12 plan format includes all of the resources but the unchanged ones are filtered out during display, whereas the old v0.11 format (which the |
Hi @apparentlymart - thanks for the speedy response! Your existing plan/prioritization sounds good. The only thing I would add is that in 0.11 the |
This was addressed in #23292. The change should be included in the next minor release. The output from |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Current Terraform Version
Use-cases
I'd like to have a way for
terraform show
to display the additional information that we get from aterraform plan
to do quick sanity checks on the plans without having to re-run them.Currently there are 3 major differences in
terraform plan
vsterraform show
output:Plan: X to add, Y to change, Z to destroy
) is only present interraform plan
outputterraform plan
shows additional details about the resources it's changing and whyterraform show
displays a?
status for resources that the plan doesn't touchAttempted Solutions
Looked at
terraform show -help
. This could be solvable by piping JSON output into a separate process to produce the desired output but it seems TF should already have the code available for this since it exists forterraform plan
Proposal
Proposing the following additions to
terraform show
(and definitely open to shorter/better suggestions on the names of the flags):-summarize
would add the summary line display-verbose
would add the additional details regarding the changes to resources-changed-only
would suppress output for resources that aren't changingAnd/or
-plan
to just completely mimicterraform plan
output and save some typing.References
The text was updated successfully, but these errors were encountered: