mirror of
https://github.com/floci-io/floci.git
synced 2026-12-05 19:18:01 -05:00
An update that kept the instance and changed its MetadataOptions left them changed when a later resource failed and the stack rolled back: rollbackUpdate undid replacements only, so the instance kept options the stack no longer declared, and the stack reported that the update could not be rolled back. The update now saves the options it replaces, with their region and the instance's __FlociDeclared records, and changes them last, after the tags, so nothing else in the step can fail after them. rollbackUpdate puts both back. The rollback counts as done only when the update changed nothing else on the instance; the instance type, groups, user data, profile and tags still have no rollback, so the stack keeps saying so for them, with the options put back all the same. Ec2Tags.reconcile now reports whether it changed anything, so a tag change counts. A committed or cleared update drops the saved copy. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>