Renaming/moving a construct changes its logical ID → CloudFormation replaces the resource (data loss for stateful resources). Always
cdk diff
before deploy. See
refactor-and-prevent-replacement
.
UPDATE_ROLLBACK_FAILED
Stack is stuck. Fix with
cdk rollback $STACK
or
cdk rollback $STACK --orphan
. See
troubleshooting-deployment
.
Non-empty S3 buckets persist after destroy
You MUST set both
removalPolicy: DESTROY
and
autoDeleteObjects: true
. Versioned buckets are worse — delete markers persist even after apparent deletion.
Common Workflows
Show more