【问题标题】:AWS IoT topic rule deletion by cloudformation failed with NotStabilized errorCloudformation 删除 AWS IoT 主题规则失败,出现 NotStabilized 错误
【发布时间】: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


    【解决方案1】:

    我找到了一个旁路:

    当我尝试使用 python boto3 lib 删除 cloudformation 堆栈时出现此问题。

    后来,我尝试使用 aws-cli 删除堆栈 - 并成功删除。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-29
      • 2021-03-24
      • 2019-07-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-29
      相关资源
      最近更新 更多