mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 23:29:28 -05:00
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.