Files
floci/src/test/java
Allen Sanborn 8e98c087fd fix(cloudformation): resolve a stack id only to the stack carrying it (#4973)
* 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.
2026-10-02 23:25:05 -04:00
..