mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-21 07:00:37 -04:00
The first pass in the planning engine decides what we're now calling the "initial replace order" for each object, which can either be replaceAnyOrder or replaceCreateThenDestroy based purely on whether that object was configured with "create_before_destroy = true" or not. The second pass then analyses the materialized graph of resource instance objects to translate any replaceAnyOrder objects into either replaceDestroyThenCreate or replaceCreateThenDestroy depending on whether they are in any dependency chain with something else that requires replaceCreateThenDestroy. For now we don't use the results of this for anything, but in a future commit we'll use it to select the appropriate ordering for the apply-time operations in the execution graph. Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
927 B
927 B