From 14315bba8fcb66d3bbd86f24079cf3cc85b45e43 Mon Sep 17 00:00:00 2001 From: Eunsu Kang <56429615+ssupecial@users.noreply.github.com> Date: Tue, 13 Aug 2024 23:31:02 +0900 Subject: [PATCH] fix(infra): restore asg min and desired size (#1955) * feat(infra): add managed scaling option to ecs capacity provider * feat(infra): modify api service desired count to zero to apply ecs cluster auto scaling * feat(infra): restore ecs api soft limit * feat(infra): modify ecs auto scaling target capacity to 100 * fix(infra): modify desired capacity to zero, not service desired count * fix(infra): modify asg min size to zero to allow desired size * fix(infra): restore asg min and desired size --- .../codedang/modules/cluster_autoscaling/autoscaling.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/infra/production/codedang/modules/cluster_autoscaling/autoscaling.tf b/apps/infra/production/codedang/modules/cluster_autoscaling/autoscaling.tf index 1418966588..7dad6e8635 100644 --- a/apps/infra/production/codedang/modules/cluster_autoscaling/autoscaling.tf +++ b/apps/infra/production/codedang/modules/cluster_autoscaling/autoscaling.tf @@ -28,8 +28,8 @@ resource "aws_autoscaling_group" "this" { name = var.autoscaling_group.name vpc_zone_identifier = [for key in keys(var.subnets) : aws_subnet.this[key].id] - desired_capacity = 0 - min_size = 0 + desired_capacity = 1 + min_size = 1 max_size = var.autoscaling_group.max_size mixed_instances_policy {