Skip to content

Commit

Permalink
add service grace period
Browse files Browse the repository at this point in the history
  • Loading branch information
jjno91 committed Mar 14, 2020
1 parent b8eecf3 commit 5508652
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ resource "aws_ecs_task_definition" "this" {
}

resource "aws_ecs_service" "this" {
name = var.id
cluster = aws_ecs_cluster.this.id
task_definition = aws_ecs_task_definition.this.arn
desired_count = var.desired_count
launch_type = "FARGATE"
propagate_tags = "SERVICE"
depends_on = [aws_lb_listener_rule.this]
tags = var.tags
name = var.id
cluster = aws_ecs_cluster.this.id
task_definition = aws_ecs_task_definition.this.arn
desired_count = var.desired_count
launch_type = "FARGATE"
propagate_tags = "SERVICE"
health_check_grace_period_seconds = 30
depends_on = [aws_lb_listener_rule.this]
tags = var.tags

load_balancer {
target_group_arn = aws_lb_target_group.this.id
Expand Down

0 comments on commit 5508652

Please sign in to comment.