Closed orgads closed 1 month ago
Hi @orgads,
Thanks for filing the issue. The plan renderer is working as expected here, because you have create a single value which is entirely unknown. Passing the entire map through jsonencode
then jsondecode
leaves the final value entirely unknown, which is why the whole map is marked with -> (known after apply)
. The intermediate value after jsonencode
is a single unknown string, the jsonedecode
function has no way to determine which map values were originally unknown from that string.
We use GitHub issues for tracking bugs and enhancements, rather than for questions. While we can sometimes help with certain simple problems here, it's better to use the community forum where there are more people ready to help.
Thanks!
I thought that was a bug, but given your explanation I realize it is expected. Thanks!
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.
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/orgads/bddc77184dd63e8c176e0b5d4ea2bbd6
Expected Behavior
constant should remain unchanged, and only the changed attribute should be displayed as diff:
Actual Behavior
Steps to Reproduce
Additional Context
No response
References
No response