Skip to content

Commit

Permalink
Revert "Revert "Fix the min and max count for the scalable target""
Browse files Browse the repository at this point in the history
This reverts commit c95297b.
  • Loading branch information
marciogoda committed Apr 2, 2024
1 parent c95297b commit d110466
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 @@ -125,8 +125,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 d110466

Please sign in to comment.