-
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
terraform show
, terraform state show ADDR
, and terraform show -json
not showing all (or consistent) data
#21666
Comments
Hi @lexrj! Thanks for reporting this. There are a few different parts to this, but I think the main one (which prompted me to label this as "bug") is that There is also the broader issue that it seems unnecessarily confusing to have multiple different ways to print out human-readable state. In future I expect we will consolidate both of those use-cases down into just The situation with The schema information is intentionally not included in the The combination of Thanks! |
Hi @apparentlymart, thank you for the update! Thank you for the additional context!
|
I think I have run into a similar issue. |
For the discrepancy between |
We faced with issue (terraform 0.14 version): terraform plan
terraform show <plan_file>
expected behaviour for us that |
Terraform Version
Terraform Output
No configs except for the standard boilerplate ones.
Same for
terraform show
andterraform state show
terraform show -json | jq .
(The most complete)For the truncation issue, here is the first missing embedded resource from the output of
terraform plan
Three total graphs were lost. The missing graphs get transformed into the next graph in the series. The missing graphs are missing in all versions of the
show
:Debug Output
Not including - no errors or complaints
Expected Behavior
terraform show
,terraform show -json
, andterraform state show ADDR
should all show the same (complete) informationActual Behavior
terraform show
: Strips null and empty string fields, but leaves empty lists and mapsterraform show -json
: Shows null, empty string, etc., but no way to differentiate a list from a repeated embedded blockterraform state show ADDR
: same asterraform show
All: Occasional complete lost of embedded blocks (consistent between formats)
Steps to Reproduce
Cannot give exact steps for data loss beyond output shown above.
Discovered while using datadog, so steps will specify there
terraform init
terraform import datadog_dashboard.stub ID
terraform show
,terraform show -json
, andterraform state show datadog_dashboard.stub
Additional Context
Using
terraform import
andterraform show
to generate configs that can allow management of existing resourcesReferences
Seems similar to: #20028
The text was updated successfully, but these errors were encountered: