【发布时间】:2021-11-13 11:41:38
【问题描述】:
我已经成功部署了这个堆栈:
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”资源给了我大约 15 分钟的“DELETE IN PROGRESS”状态,然后是“DELETE FAILED”状态。
cloudformation 的错误信息是:
Resource handler returned message: "Exceeded attempts to wait" (RequestToken: ***********, HandlerErrorCode: NotStabilized)
我查看了错误代码的 cloudformation 文档(https://docs.aws.amazon.com/es_es/cloudformation-cli/latest/userguide/resource-type-test-contract-errors.html), 它说:
NotStabilized
The downstream resource failed to complete all of its ready-state checks.
Type: Terminal
有人知道怎么解决吗?
谢谢
【问题讨论】:
标签: amazon-web-services aws-lambda amazon-cloudformation aws-iot