diff --git a/apps/infra/modules/codedang-infra/ecs-api-admin.tf b/apps/infra/modules/codedang-infra/ecs-api-admin.tf index 963bae71ca..1c76546137 100644 --- a/apps/infra/modules/codedang-infra/ecs-api-admin.tf +++ b/apps/infra/modules/codedang-infra/ecs-api-admin.tf @@ -64,6 +64,7 @@ resource "aws_ecs_service" "admin_api" { desired_count = 1 launch_type = "EC2" health_check_grace_period_seconds = 300 + force_new_deployment = true # EC2 기반의 ECS라 필요 없을듯 diff --git a/apps/infra/modules/codedang-infra/ecs-api-client.tf b/apps/infra/modules/codedang-infra/ecs-api-client.tf index 9da5854f00..76fb82e1f8 100644 --- a/apps/infra/modules/codedang-infra/ecs-api-client.tf +++ b/apps/infra/modules/codedang-infra/ecs-api-client.tf @@ -64,6 +64,7 @@ resource "aws_ecs_service" "client_api" { desired_count = 1 launch_type = "EC2" health_check_grace_period_seconds = 300 + force_new_deployment = true # EC2 기반의 ECS라 필요 없을듯 diff --git a/apps/infra/modules/codedang-infra/ecs-iris.tf b/apps/infra/modules/codedang-infra/ecs-iris.tf index 84b47273c4..25670ddff3 100644 --- a/apps/infra/modules/codedang-infra/ecs-iris.tf +++ b/apps/infra/modules/codedang-infra/ecs-iris.tf @@ -21,11 +21,12 @@ resource "aws_subnet" "private_iris2" { ###################### ECS Service ###################### resource "aws_ecs_service" "iris" { - name = "Codedang-Iris-Service" - cluster = aws_ecs_cluster.iris.id - task_definition = aws_ecs_task_definition.iris.arn - desired_count = 2 - launch_type = "EC2" + name = "Codedang-Iris-Service" + cluster = aws_ecs_cluster.iris.id + task_definition = aws_ecs_task_definition.iris.arn + desired_count = 2 + launch_type = "EC2" + force_new_deployment = true } data "aws_ecr_repository" "iris" {