Cloudformation:UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS卡住了问题

时间:2020-08-20 20:08:12

标签: amazon-web-services

我有一个CFN堆栈,它处于UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS状态。 它经常发生在我身上,尤其是当我使用自定义函数时。

我已经通读了几乎所有内容,但是除了联系AWS支持人员之外,找不到任何建议解决方案的内容。是否可以解决此问题,或者完全避开它?

大约半天后(过长),它会自行返回失败状态。写入AWS支持至少需要2个小时才能解决。请帮忙

1 个答案:

答案 0 :(得分:0)

您的自定义资源没有告诉CloudFormation它已成功删除。

要解决此问题,您可以自己发起呼叫-这只是一个HTTP呼叫。

在CloudWatch日志中查找调用堆栈上的Delete操作的事件。

然后提取正确的值,以便像这样对CloudFormation服务器进行HTTP调用:

curl -H 'Content-Type: ''' -X PUT -d '{
"Status": "SUCCESS",
"PhysicalResourceId": "<value from event>",
"StackId": "value from event, e.g. arn:aws:cloudformation:us-east-1:111122223333:stack/awsexamplecloudformation/33ad60e0-5f25-11e9-a734-0aa6b80efab2
",
"RequestId": "value from event, e.g. e2fc8f5c-0391-4a65-a645-7c695646739",
"LogicalResourceId": "value from event, e.g.CloudWatchtrigger"
}' 'ResponseURL, e.g. https://cloudformation-custom-resource-response-useast1.s3.us-east-1.amazonaws.com/arn%3Aaws%3Acloudformation%3Aus-east-1%3A1%3Astack/awsexamplecloudformation/33ad60e0-5blablabla'

对于URL,请使用Delete命令中的ResponseURL参数。

拨打电话后,资源应进入DELETE_COMPLETE状态。

https://aws.amazon.com/premiumsupport/knowledge-center/cloudformation-lambda-resource-delete/