mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-21 02:37:43 -05:00
This is my current idea for how to resolve the chicken/egg problem of the planning phase needing to know who uses ephemeral resource instances and provider instances but us needing to evaluate the configuration to know those relationships. This borrows the evaluation behavior previously used for ConfigInstance.Validate to produce a conservative evaluation of the configuration without depending on any configured providers or ephemeral resource instances, which we (in future commits) will use to discover the relationships between those objects so that the real walk during the planning phase can know when to start and stop them. This relies on the idea that an evaluation with values stubbed out as unknown should produce _at least_ the relationships that would occur with fewer unknown values, though it might also report additional dependencies that would vanish once values become more known. This gives the plan phase something to start with and then we'll learn a tighter set of dependencies during the planning phase which will form the basis of the apply-time execution graph. Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
1.2 KiB
1.2 KiB