【问题标题】:RDS does not support creating a DB instance with the following combinationRDS 不支持创建以下组合的数据库实例
【发布时间】:2019-08-31 01:19:21
【问题描述】:

我试图弄清楚如何创建一个简单的数据库实例。到目前为止,我只有一个 DBSubnetGroupDBInstance。至此,我已经根据我在尝试使用我的模板(在 Designer 中创建)创建堆栈时遇到的错误找出了几件事。

我现在遇到了一个错误,根据实例类文档,它似乎应该被支持,但我猜不是。根据我下面的 sn-p,我应该改用什么?

myDB:
  Type: 'AWS::RDS::DBInstance'
  Properties:
    DBInstanceClass: db.m1.small
    DBName: myDB
    DBSubnetGroupName: !Ref myDBSubnetGroup
    Engine: mysql
    EngineVersion: 5.6.41
    AllocatedStorage: '100'
    MasterUsername: admin
    MasterUserPassword: AmazingPassword

实际错误是

RDS does not support creating a DB instance with the following combination: DBInstanceClass=db.m1.small, Engine=mysql, EngineVersion=5.6.41, LicenseModel=general-public-license. For supported combinations of instance class and database engine version, see teh documentation. (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 04a8be38-9368-40e4-b677-1cdc442b3cae

再次,我查看了文档,它说 db.m1.small 支持 MySQL v5.6。也许那已经过时了?我想我可以试试 5.7。

有什么想法吗?

【问题讨论】:

  • 我认为这可能是因为 db.m1.* 系列是旧的实例类型。您能否尝试使用当前一代实例类型之一,例如 db.m5.* 或 db.t3.* 或 db.t2.*(适用于免费套餐)。

标签: amazon-web-services amazon-cloudformation amazon-rds


【解决方案1】:

取自 aws 文档:

您只能使用以下命令创建 MySQL 5.7 和 8.0 数据库实例 最新一代和最新一代数据库实例类,在 db.m3 上一代数据库实例类的补充。

阅读更多:https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.MySQL.html

【讨论】:

猜你喜欢
  • 2020-11-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-03-08
  • 2020-09-24
  • 2015-02-10
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多