I am trying to provision a Aurora Serverless database via Terraform. I have following setup.
resource "aws_rds_cluster" "auth-db-cluster" {
cluster_identifier = "auth-db-cluster"
engine = "aurora-postgresql"
engine_mode = "serverless"
engine_version = "10.7"
database_name = "${var.auth_db_name}"
master_username = "${var.auth_db_user}"
master_password = "${var.auth_db_password}"
db_subnet_group_name = "${aws_db_subnet_group.rds-subnet-group.id}"
vpc_security_group_ids = ["${aws_security_group.rds-security-group.id}"]
skip_final_snapshot = true
final_snapshot_identifier = "Ignore"
}
resource "aws_rds_cluster_instance" "cluster_instances" {
count = 1
identifier = "auth-db-cluster-instance"
cluster_identifier = "${aws_rds_cluster.auth-db-cluster.id}"
instance_class = "db.t3.micro"
}
Terraform fails will the following error:
- aws_rds_cluster.auth-db-cluster: error creating RDS cluster: InvalidParameterValue: The engine mode serverless you requested is currently unavailable. status code: 400, request id: 7d8bcb5b-0c41-4498-853d-5c6cfd491dd8