[英]AWS CloudFormation stack stuck in the state UPDATE_ROLLBACK_IN_PROGRESS
I wanted to update my stack.我想更新我的堆栈。 The stack failed with error Function not found: arn:aws:lambda.... And stack in status UPDATE_ROLLBACK_IN_PROGRESS more than 5 hours.堆栈失败,错误为 Function not found: arn:aws:lambda.... 堆栈状态 UPDATE_ROLLBACK_IN_PROGRESS 超过 5 小时。 How do I stop this process?我该如何停止这个过程?
If you deleted the function outside of CloudFormation, then you can manually create a new function of the same name .如果您在 CloudFormation 之外删除了 function,那么您可以手动创建一个新的同名function。 This sometimes helps.这有时会有所帮助。
You can also wait till the rollback timeouts.您也可以等到回滚超时。 And it usually does after a while, but the time varies.它通常会在一段时间后发生,但时间会有所不同。
Another reason why it gets stuck in this state could be due to nested stacks:它卡在这个 state 中的另一个原因可能是由于嵌套堆栈:
In this case a recommended option is indeed to contact support:在这种情况下,推荐的选项确实是联系支持人员:
To fix the stack, contact AWS customer support .要修复堆栈,请联系AWS 客户支持。
Recent AWS blog post also describes the issue and possible solutions:最近的AWS 博客文章还描述了该问题和可能的解决方案:
Regarding the time to wait, the timeout varies :关于等待的时间,超时时间各不相同:
In most situations, you must wait for your AWS CloudFormation stack to time out.在大多数情况下,您必须等待 AWS CloudFormation 堆栈超时。 The timeout length varies , and is based on the individual resource stabilization requirements that AWS CloudFormation waits for to reach the desired state.超时长度会有所不同,具体取决于 AWS CloudFormation 等待达到所需 state 的各个资源稳定性要求。
In our case, we have mistakenly passed wrong image name to cloudformation template.在我们的例子中,我们错误地将错误的图像名称传递给了 cloudformation 模板。 After realising the mistake, we tried to stop the stack update, which made the stack stuck for forever in UPDATE_ROLLBACK_IN_PROGRESS status.意识到错误后,我们试图停止堆栈更新,这使得堆栈永远停留在 UPDATE_ROLLBACK_IN_PROGRESS 状态。 SO during ECS service creation it got stuck.所以在 ECS 服务创建过程中卡住了。 Solution:解决方案:
Your Task definition is reset to previous version.您的任务定义已重置为以前的版本。 And roll back will complete successfully.回滚将成功完成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.