mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-11 18:00:59 -04:00
Since we have to allow destroy nodes to be evaluated for providers during a full destroy, this is adding a transformer to connect temporary values to any destroy versions of their references when possible. The ensures that the destroy happens before evaluation, even when there isn't a full create-then-destroy set of instances. The cases where the connection can't be made are when the temporary value has a provider descendant, which means it must evaluate early in the case of a full destroy. This means the value may contain incorrect data when referencing resource that are create_before_destroy, or being scaled-in via count or for_each. That will need to be addressed later by reevaluating how we handle the full destroy case in terraform.
20 KiB
20 KiB