mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 23:59:27 -05:00
The update rollback deleted what a failed update added in map order, so a resource could go before the resources that depend on it. It now walks the template's dependency order in reverse, as stack delete and the cleanup of committed replacements do. Those walks ignore resource conditions and count every Fn::If branch, since a failed rollback restores the parameters while a resource can stay on the branch the failed update chose; where counting every branch would close a cycle, the branches chosen now decide just those edges. A resource the template no longer names is deleted before the held resources its attributes name, leftovers included, and a NAT gateway records its subnet and Elastic IP under hidden attributes for this, restored with the public ones when a replacement is reverted. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>