Is it impossible to update a CloudFormation stack once it goes into the UPDATE_ROLLBACK_COMPLETE
state? I am using CodePipeline to deploy things. I find that once a stack goes into some invalid state, many times, I have to delete the stack manually and let it recreate everything again. Is that the right way to do this?
-
1I haven't found that to be the case. Whenever I get to `UPDATE_ROLLBACK_COMPLETE` I can easily just update the stack again. If however the stack is in `ROLLBACK_COMPLETE`, you have to just burn the stack and start over. That said, all resources will have been deleted. – Jamie Starke Sep 19 '17 at 04:12
-
im experiencing this exact same issue. my stack gets into `UPDATE_ROLLBACK_COMPLETE ` state then serverless just ignores updates. did you ever find the reason this was happening? – crogers May 28 '20 at 21:06
3 Answers
If the stack is in UPDATE_ROLLBACK_COMPLETE
state you should be able to update the stack again.
If the rollback failed you may need to call ContinueUpdateRollback from CloudFormation before you can update again.
If your stack is stuck in UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS
you may be experiencing this issue.

- 1,457
- 8
- 10
-
Nice, I didn't know abobut the continue thing. I've waited up to 10 minutes while `UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS` was happening until it finished. – Samer Jan 07 '19 at 16:31
Look into CloudFormation's stack events, there should be some error which would have caused stack update issues.
I had the same problem where status was UPDATE_ROLLBACK_COMPLETE (red font with a cross icon) and CloudFormation stack wasn't getting updated.
I had a look in CloudFormation's stack Events and there was no 'Status reason' against 'UPDATE_ROLLBACK_COMPLETE' status but when I drilled down a bit further, there was an error regarding lambda code using one of the AWS reserved keywords against the status 'UPDATE_FAILED'(screenshot attached).
After removal of keyword from lambda code it worked like a charm.

- 410
- 6
- 14
-
How did you drill down a bit further? Mine has no status reason – Nairi Areg Hatspanyan Feb 04 '23 at 15:18
-
Nairi, look in 'EVENTS' tab and then scroll down until you com across the first status in red. It will most likely be a CREATE FAILED. – cbilliau Apr 05 '23 at 16:41
The answer obviously heavily depends on your specific case and the AWS resources that are involved as already mentioned by others. As an inspiration for others I had the error 'UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS' with the latest event looking like this:
Cloudformation got stuck here because the lambda function that it was trying to delete wasn't existing. I don't know why this happened but the "FileUploadLambdaFunction" was the function that I wanted to deploy for the first time on this stack and it was replacing two legacy functions which I don't use anymore.
I solved it by manually creating a Lambda Function with the same name and then deleting it again. That triggered the workflow to start again and to continue as normal.

- 310
- 2
- 12