【发布时间】: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