小编Box*_*oxy的帖子

路由未在预期时间内稳定 以下资源无法创建 NATRoute 。用户请求回滚

我正在尝试创建 CloudFormation Stack,它将创建 VPC、子网、IGW、路由表、NAT 网关、将子网与 RT 关联等

我的堆栈失败,NAT 网关尝试为私有路由表创建规则,以便为 NAT GW 创建路由规则。

  # Punblic Elastic IP for NAT Gateway in Zone 2A
  eipSubnetA:
    Type: AWS::EC2::EIP
    Properties:
      Domain: vpc  

  # NAT Gateway in Public Subnet 2A
  natSubnetA:
    Type: AWS::EC2::NatGateway
    Properties:
      AllocationId:
        Fn::GetAtt: [eipSubnetA, AllocationId]
      SubnetId:
        Ref: PRODSubnetPublic2a
      Tags:
        - Key: Name
          Value: nat-Subnet-a
  # Route through NAT Gateway
  NATRoute:
      Type: AWS::EC2::Route
      Properties:
        RouteTableId:
          Ref: PRODRTPrivate
        DestinationCidrBlock: 0.0.0.0/0
        GatewayId:
          Ref: natSubnetA 
Run Code Online (Sandbox Code Playgroud)

我在 CloudFormation Events 选项卡中看到的错误是:

The following resource(s) failed to create: [NATRoute]. …
Run Code Online (Sandbox Code Playgroud)

aws-cloudformation

4
推荐指数
1
解决办法
2142
查看次数

标签 统计

aws-cloudformation ×1