首页 > 解决方案 > 网关附件删除失败,但找不到附件。问题出在哪里?

问题描述

尝试使用 Cloud Formation 创建新堆栈时,我在删除时收到以下错误stack

网络 vpc-1c202306 有一些映射的公共地址。请在分离网关之前取消映射这些公共地址。

在那之后:

未能删除以下资源:[GatewayAttachment]。

配置:

  GatewayAttachment:
    Type: AWS::EC2::VPCGatewayAttachment
    Properties:
      VpcId: !Ref VpcId
      InternetGatewayId: !Ref InternetGatewayID

寻找所有 AWS::EC2::VPCGatewayAttachment

aws configservice list-discovered-resources --resource-type "AWS::EC2::VPCGatewayAttachment"

什么都找不到。

尝试对堆栈进行“强制删除”时,AWS 会显示一条消息“您可能会保留无法删除的资源”,其中id包含在删除过程中要忽略的资源:

网关附件

穗-Gatew-2OHGCPI1AGQBC

那么,这是哪里spike-Gatew-2OHGCPI1AGQBC

标签: amazon-web-servicesamazon-cloudformationamazon-ecsaws-fargate

解决方案


推荐阅读