Terraform InvalidParameterCombination 与 AWS Microsoft SQL

Terraform InvalidParameterCombination with AWS Microsoft SQL

尝试使用 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 控制台手动创建了一个具有这些规格的数据库,没有问题

提前致谢

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