Skip to content

Commit

Permalink
feat(infra): ecs task update when terraform apply (#1596)
Browse files Browse the repository at this point in the history
feat: ecs task update when terraform apply
  • Loading branch information
y-jiu authored Mar 25, 2024
1 parent adf2e88 commit e527c51
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions apps/infra/modules/codedang-infra/ecs-api-admin.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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라 필요 없을듯
Expand Down
1 change: 1 addition & 0 deletions apps/infra/modules/codedang-infra/ecs-api-client.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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라 필요 없을듯
Expand Down
11 changes: 6 additions & 5 deletions apps/infra/modules/codedang-infra/ecs-iris.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit e527c51

Please sign in to comment.