Files
floci/src
Priamo d8e66b3ced fix(cloudformation): keep a rolled-back stack's diagnostics until the next redeploy
CreateStack had no name-conflict check at all: createChangeSet's
computeIfAbsent silently reused any existing stack regardless of
status, so a second CreateStack for a live name re-ran the template
against the same stack instead of failing. That left callers no
AWS-faithful way to redeploy over a ROLLBACK_COMPLETE stack except an
explicit DeleteStack first - which destroys the failed attempt's
DescribeStackEvents before an operator gets to read them.

Now a CREATE-type change set against an existing stack throws
AlreadyExistsException unless that stack is ROLLBACK_COMPLETE, in
which case it's replaced with a fresh stack (new StackId, empty
resources/events) at execute time - the moment a redeploy is actually
requested, not eagerly when the rollback itself completes. The failed
attempt stays fully describable for as long as nobody's asked to
retry.

Closes #2207.
2026-08-18 00:17:43 -04:00
..