I m looking for a way to have terraform dump to me the expected state (the one computed from the tf files) i have tried a terraform plan -json -out ./plan
& terraform show -json ./plan
, but thats missing a lot of info
Hi @raphaelfff
The expected state is the sum of all the changes in plan. Can you elaborate on what information you are missing?
For example, i m using the kubernetes manifest resource, the plan doesnt give me a field which has the state i wrote down in the tf file, only the vars it references
Can you show a complete example of what you think is missing from the json output? The configured values should all be present in the changes, though any computed values are likely to be entirely unknown at this point.