- Newest
- Most votes
- Most comments
When a CloudFormation nested stack gets stuck in UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS state for an extended period, it's typically because CloudFormation is unable to complete the cleanup process due to resource dependencies or resources that were modified outside of CloudFormation.
This situation commonly occurs when:
- A nested stack failed to roll back completely
- CloudFormation can't clean up resources because they're still in use
- Resources were modified outside of CloudFormation's management
- There are invisible dependencies (like hidden load balancers) that CloudFormation is waiting on
Since your parent stack was deleted but the nested stack remains orphaned, you're in a particularly challenging situation. Here are some steps you can try:
-
Identify any resources that might be blocking the cleanup. Look for resources that might have dependencies or are being used by other services.
-
Manually delete the resources created by the stack, starting with the most dependent resources first. This may require going through each resource in the AWS console and deleting them individually.
-
Once all resources are deleted, you might be able to delete the stack itself.
-
If the stack is still stuck, you may need to wait longer. In some cases, CloudFormation will eventually give up after multiple retry attempts (which can take 6+ hours).
-
As a last resort, you can try contacting AWS Support through the Account and Billing support channel, which is available at no additional cost.
Unfortunately, nested stacks that are stuck in cleanup states are one of the more challenging CloudFormation issues to resolve without AWS Support assistance, especially when the parent stack has already been deleted.
Sources
CloudFormation Stack stuck in post update cleanup | AWS re:Post
Troubleshooting CloudFormation - AWS CloudFormation
Stack status of UPDATE_ROLLBACK_COMPLETE but unable to update stack | AWS re:Post
That status usually means a resource couldn’t be deleted (e.g. S3 bucket not empty, ENI still attached). Steps:
Run aws cloudformation describe-stack-events and find the last DELETE_FAILED resource.
Manually clean it (empty bucket, detach ENI, release EIP, etc.).
Then retry stack deletion or use “Continue Rollback.”
For nested stacks, check if a child stack blocked cleanup.
If it’s non-critical, sometimes exporting state and recreating the stack is quicker than waiting.
