Health Checks
Two independent health checks:
- ECS health check (container-level): exit code 0 = healthy
- ALB health check (HTTP):
GET /health → 200
"healthCheck": {
"command": ["CMD-SHELL", "curl -sf http://localhost:8080/health || exit 1"],
"interval": 30,
"timeout": 5,
"retries": 3,
"startPeriod": 60
}
startPeriod: grace period for slow-starting containers — ECS won't count health check failures during this window.