我已经成功地部署了这个堆栈:
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
some decription
Parameters:
ImageUri:
Type: String
Resources:
SomeLambda:
Type: AWS::Serverless::Function
Properties:
PackageType: Image
ImageConfig:
Command: ["src/something"]
ImageUri: !Ref ImageUri
Events:
IoTRule:
Type: IoTRule
Properties:
Sql: SELECT * FROM 'something/+/+'
AwsIotSqlVersion: 2016-03-23
我将上面的堆栈部署为根堆栈的嵌套堆栈。
当我尝试删除堆栈时,"AWS::IoT::TopicRule“资源显示"DELETE IN PROGRESS”约15分钟,然后显示"DELETE FAILED“状态。
cloudformation上的错误消息是:
Resource handler returned message: "Exceeded attempts to wait" (RequestToken: ***********, HandlerErrorCode: NotStabilized)
我查看了错误代码(https://docs.aws.amazon.com/es_es/cloudformation-cli/latest/userguide/resource-type-test-contract-errors.html)的cloudformation,它说:
NotStabilized
The downstream resource failed to complete all of its ready-state checks.
Type: Terminal
有人知道怎么解决这个问题吗?
谢谢
发布于 2021-12-01 16:42:55
我找到了一个旁路:
当我尝试使用python boto3 lib删除cloudformation时,出现了这个问题。
后来,我尝试使用aws-cli删除堆栈-它被成功删除。
https://stackoverflow.com/questions/69242998
复制相似问题