Skip to content

Commit

Permalink
RDS: Set max_capacity as var.db_max_capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
takano32 committed Feb 26, 2024
1 parent 10d2f38 commit 6880e8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6880e8c

Please sign in to comment.