diff --git a/db.tf b/db.tf index f35714a..ec9bffe 100644 --- a/db.tf +++ b/db.tf @@ -18,7 +18,7 @@ resource "aws_rds_cluster" "this" { serverlessv2_scaling_configuration { min_capacity = 1 - max_capacity = 4 + max_capacity = var.db_max_capacity } db_subnet_group_name = aws_db_subnet_group.this.name diff --git a/variables.tf b/variables.tf index 94c21a1..ec0e311 100644 --- a/variables.tf +++ b/variables.tf @@ -65,7 +65,7 @@ variable "db_backup_window" { variable "db_max_capacity" { description = "The maximum Aurora capacity unit of the db. Ref - https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html" - default = "1" + default = "4" } variable "db_min_capacity" { description = "The minimum Aurora capacity unit of the db. Ref - https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html"