Skip to content

Commit

Permalink
Fix the min and max count for the scalable target
Browse files Browse the repository at this point in the history
  • Loading branch information
keirbadger committed Jan 3, 2024
1 parent 4f39abe commit 70d4ed4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ resource "aws_cloudwatch_log_subscription_filter" "kinesis_log_stderr_stream" {
}

resource "aws_appautoscaling_target" "ecs" {
min_capacity = var.desired_count
max_capacity = var.desired_count
min_capacity = floor(var.desired_count / 2)
max_capacity = var.desired_count * 3
resource_id = "service/${var.ecs_cluster}/${local.full_service_name}"
scalable_dimension = "ecs:service:DesiredCount"
service_namespace = "ecs"
Expand Down

0 comments on commit 70d4ed4

Please sign in to comment.