小编rya*_*ndb的帖子

AWS CloudFormation RDS 实例无法创建 - 找不到 DBCluster

我正在使用 cloudformation 并遇到了 DBSubnetGroup 无法解决的问题。我的目标是构建一个简单的设置:

  • 具有两个子网的 VPC
  • 这些子网上的 RDS 数据库子网组
  • 该数据库子网中的 RDS 数据库集群
  • 该集群中的单个 RDS 实例

在cloudformation中,我不断收到错误:

Could not find DB Cluster: MyRDSClusterId (Service: AmazonRDS; Status Code: 
404; Error Code: DBClusterNotFoundFault; Request ID: ...)
Run Code Online (Sandbox Code Playgroud)

对我来说一切看起来都不错,cloudformation 说我的 DBCluster 已正确创建。我在这里做错了什么?任何对我做错了什么的见解将不胜感激。

这是我的云信息模板:

AWSTemplateFormatVersion: "2010-09-09"
Description: Stack with DBSubnetGroup, DBCluster, and one DBInstance
Resources:
  MyAppVPC:
    Type: AWS::EC2::VPC
    Properties:
      CidrBlock: 192.168.0.0/16
      EnableDnsSupport: true
      EnableDnsHostnames: true
      InstanceTenancy: default
  MyAppRDSSubnetA:
    Type: AWS::EC2::Subnet
    Properties:
      AvailabilityZone: us-east-1a
      VpcId: !Ref MyAppVPC
      CidrBlock: 192.168.0.0/24
      MapPublicIpOnLaunch: true
  MyAppRDSSubnetB:
    Type: AWS::EC2::Subnet
    Properties:
      AvailabilityZone: …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services amazon-rds aws-cloudformation

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