From dfbd8a75949e91fceddfe5f27f5acf52fa6ab031 Mon Sep 17 00:00:00 2001 From: donghun1214 Date: Thu, 19 Dec 2024 10:48:18 +0000 Subject: [PATCH] fix(infra): reduce resource spec for vacation --- apps/infra/production/codedang/codedang_api.tf | 2 +- apps/infra/production/codedang/codedang_iris.tf | 2 +- apps/infra/production/codedang/codedang_service_client.tf | 4 ++-- apps/infra/production/codedang/codedang_service_iris.tf | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/infra/production/codedang/codedang_api.tf b/apps/infra/production/codedang/codedang_api.tf index d8bf00e015..d2b296de6b 100644 --- a/apps/infra/production/codedang/codedang_api.tf +++ b/apps/infra/production/codedang/codedang_api.tf @@ -11,7 +11,7 @@ module "codedang_api" { autoscaling_group = { name = "Codedang-AutoScalingGroup-Api" max_size = 10 - desired_capacity = 2 + desired_capacity = 1 } autoscaling_policy = { diff --git a/apps/infra/production/codedang/codedang_iris.tf b/apps/infra/production/codedang/codedang_iris.tf index 1cb9fdfb7c..17820d3edd 100644 --- a/apps/infra/production/codedang/codedang_iris.tf +++ b/apps/infra/production/codedang/codedang_iris.tf @@ -12,7 +12,7 @@ module "codedang_iris" { autoscaling_group = { name = "Codedang-AutoScalingGroup-Iris" max_size = 4 - desired_capacity = 2 + desired_capacity = 1 } autoscaling_policy = { diff --git a/apps/infra/production/codedang/codedang_service_client.tf b/apps/infra/production/codedang/codedang_service_client.tf index f8f6c0b5b2..ad7e03d6d3 100644 --- a/apps/infra/production/codedang/codedang_service_client.tf +++ b/apps/infra/production/codedang/codedang_service_client.tf @@ -107,7 +107,7 @@ module "client_api" { ecs_service = { name = "Codedang-Client-Api-Service" cluster_arn = module.codedang_api.ecs_cluster.arn - desired_count = 3 + desired_count = 2 load_balancer = { container_name = "Codedang-Client-Api" container_port = 4000 @@ -116,7 +116,7 @@ module "client_api" { } appautoscaling_target = { - min_capacity = 3 + min_capacity = 2 max_capacity = 8 resource_id = { cluster_name = module.codedang_api.ecs_cluster.name diff --git a/apps/infra/production/codedang/codedang_service_iris.tf b/apps/infra/production/codedang/codedang_service_iris.tf index 1b68129a1b..d3139393e9 100644 --- a/apps/infra/production/codedang/codedang_service_iris.tf +++ b/apps/infra/production/codedang/codedang_service_iris.tf @@ -75,12 +75,12 @@ module "iris" { ecs_service = { name = "Codedang-Iris-Service" cluster_arn = module.codedang_iris.ecs_cluster.arn - desired_count = 6 + desired_count = 2 } appautoscaling_target = { - min_capacity = 6 - max_capacity = 6 + min_capacity = 2 + max_capacity = 4 resource_id = { cluster_name = module.codedang_iris.ecs_cluster.name }