mirror of
https://github.com/floci-io/floci.git
synced 2026-12-06 03:28:18 -05:00
* fix(cloudformation): update the tags of an AWS::Events::EventBus in place A tag-only UpdateStack of an event bus was refused with "Updating AWS::Events::EventBus Description, Tags, or Policy is not supported until transactional rollback is available." and rolled back, so a template that bumps a version tag could not be deployed. The bus the stack already owns now takes the template's tags: a key the stack set and the template dropped is untagged, a tag added outside the stack stays, as measured on AWS. The tags of the keys the update touches are snapshotted first, and rollbackUpdate puts them and the tracked keys back when a later resource fails the update. Description and Policy changes are still refused. Closes #7796 * fix(cloudformation): keep a failed event bus tag update for its rollback A tag call that fails after the bus's tags started changing left the engine restoring the previous resource and marking it rolled back, so the half-applied tags stayed. retainsFailedUpdateState now keeps an attempt that carries the tag snapshot, and the rollback walker restores it through rollbackUpdate, as the SSM parameter provisioner does. * test(cloudformation): read EventBridge answers through callEventBridge * refactor(cloudformation): share the tag snapshot of an update with SSM The event bus recorded and read back the tags of an update the same way the SSM parameter does. CfnRollback now holds that pair, putTagSnapshot, snapshotTagKeys and snapshotTags, in the same tagKeys and tags fields, so a snapshot an SSM update already stored still reads. The bus reconciles its tags from the managed keys and the desired tags, as SSM's reconcileTags does, so its update and rollback no longer each work out the keys to remove. * fix(cloudformation): read a null tag value back as null from a tag snapshot * refactor(cloudformation): read the event bus update snapshot through CfnRollback rollbackEventBusUpdate parsed its snapshot by hand, which is what CfnRollback.updateSnapshot does; it now uses that and still reports false when the bus carries no snapshot. The CloudFormation docs say event bus tags now update in place on UpdateStack, keeping tags added outside the stack, and go back when a later resource fails the update.