mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
A resource that failed to provision was silently ignored — the stack still reached CREATE_COMPLETE, leaving a half-built stack behind. The execution now stops on the first CREATE_FAILED/UPDATE_FAILED resource and, on a create, deletes the resources already created in that execution so the stack ends ROLLBACK_COMPLETE on a clean slate and a corrected re-deploy can succeed. Updates mark UPDATE_ROLLBACK_COMPLETE and keep prior physical ids (full prior-template restoration is out of scope). The rolled-back terminal state is persisted so it survives a restart. Tests cover rollback + successful retry and the single-failed-resource case. Refs #924