【问题标题】:Terraform InvalidParameterCombination with AWS Microsoft SQLTerraform InvalidParameterCombination 与 AWS Microsoft SQL
【发布时间】:2021-08-25 03:34:35
【问题描述】:

在尝试使用 terraform 创建 AWS RDS 实例时遇到问题,我浏览了 AWS 和 Terraform 中的文档,但我无法理解为什么这是一个无效的组合,我正在尝试为测试:

resource "aws_db_instance" "rds-mssql" {
  allocated_storage   = 20
  engine              = "sqlserver-ee" 
  engine_version      = "14.00.3356.20.v1"
  instance_class      = "db.t2.micro"
  name                = "mydbtest"
  username            = "usernameGoesHere"
  password            = "passwordGoesHere"
  license_model       = "license-included"
}

得到以下错误:

Error: Error creating DB Instance: InvalidParameterCombination: RDS does not support creating a DB instance with the following combination: DBInstanceClass=db.t2.micro, Engine=sqlserver-ee, EngineVersion=14.00.3356.20.v1, LicenseModel=license-included. For supported combinations of instance class and database engine version, see the documentation

我从这里关注了文档:https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html

我还从 AWS 控制台手动创建了一个没有问题的数据库

提前致谢

【问题讨论】:

    标签: sql-server amazon-web-services terraform amazon-rds


    【解决方案1】:

    sqlserver-ee 用于 企业版 其中does not support t2.micro。我猜你想要sqlserver-ex(速成版)。

    【讨论】:

    • 感谢 Marcin,我犯了一个愚蠢的错误,我将 ee 视为(速成版)
    • @ElihuDelValle 没问题。如果答案有帮助,我们将不胜感激。
    猜你喜欢
    • 2019-06-29
    • 2020-12-13
    • 2023-02-23
    • 2019-11-04
    • 2020-02-13
    • 1970-01-01
    • 2022-01-01
    • 2020-06-12
    • 1970-01-01
    相关资源
    最近更新 更多