Skip to content

Commit

Permalink
#44 add healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
kunduso committed May 7, 2024
1 parent 6fa2d7f commit 195f88e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy/ecs_task.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ resource "aws_ecs_task_definition" "web_app" {
awslogs-stream-prefix = "ecs"
}
}
healthCheck = {
command = ["CMD-SHELL", "curl -f http://localhost:8080 || exit 1"]
interval = 30
retries = 3
timeout = 5
startPeriod = 10
}
}
])
}

0 comments on commit 195f88e

Please sign in to comment.