mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Planned output changes are represented in the JSON output format using the same change object as planned resource changes. This structure includes an `after` value and a parallel `after_unknown` value, which can be combined to determine which specific parts of a value are known only at apply time. Previously, structured output values would be marked in the JSON plan as coarsely known or unknown, even if only some subset of the structure will be known only at apply time. This simplification was unnecessary, and this commit reuses the same logic for resource changes to give more information to consumers of this format. For example, consider this output: output "bar" { value = tolist([ "hello", timestamp(), "world", ]) } The plan output for this output would be: + bar = [ + "hello", + (known after apply), + "world", ] For the same plan, the JSON output was previously: "bar": { "actions": [ "create" ], "before": null, "after_unknown": true, "before_sensitive": false, "after_sensitive": false } After this commit, the output is instead: "bar": { "actions": [ "create" ], "before": null, "after": [ "hello", null, "world" ], "after_unknown": [ false, true, false ], "before_sensitive": false, "after_sensitive": false } |
||
---|---|---|
.. | ||
basic-create | ||
basic-delete | ||
basic-update | ||
conditions | ||
drift | ||
module-depends-on | ||
modules | ||
moved | ||
moved-drift | ||
multi-resource-update | ||
nested-module-error | ||
nested-modules | ||
provider-aliasing | ||
provider-aliasing-conflict | ||
provider-aliasing-default | ||
provider-version | ||
provider-version-no-config | ||
requires-replace | ||
sensitive-values | ||
unknown-output |