ASR*_*ASR 2 postgresql amazon-web-services amazon-rds terraform terraform-provider-aws
我正在尝试使用 Terraform 创建一个 PostgreSQL RDS 实例。这是我的配置的外观:
resource "aws_db_subnet_group" "postgres" {
name = "postgres-subnets"
subnet_ids = ["mysub1","mysub2"]
}
resource "aws_db_instance" "myrds" {
engine = "postgresql"
engine_version = "12.4"
instance_class = "db.t2.micro"
identifier = "myrds"
username = "myuser"
password = "*******"
allocated_storage = 10
storage_type = "gp2"
db_subnet_group_name = "${aws_db_subnet_group.postgres.id}"
}
Run Code Online (Sandbox Code Playgroud)
它失败并出现以下错误:
Error: Error creating DB Instance: InvalidParameterValue: Invalid DB engine
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
547 次 |
| 最近记录: |