mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
* fix(cloudformation): resolve a stack id only to the stack carrying it resolveStack turned an ARN into its stack name and returned whatever live stack held that name. After a stack was deleted and its name reused, DescribeStacks with the old stack id returned the new live stack (new id, CREATE_COMPLETE) instead of the retained deleted one, and DeleteStack with the old id deleted the new stack. An ARN now resolves to a live stack only when the stack ids match, so DescribeStacks/DescribeStackEvents fall through to the retained deleted record (DELETE_COMPLETE), DeleteStack on the old id is the existing no-op, and other operations answer "Stack with id ... does not exist". * fix(cloudformation): send the real stack id in custom resource events The custom resource event carried a made-up StackId (stack/<name>/<random uuid>), so a handler calling DescribeStacks(event.StackId) now gets "does not exist" since stack ids resolve only to the stack carrying them. Pass the engine's stack id on Create/Update and stash it for Delete, which only sees the StackResource.