title: spring boot application on elastic beanstalk - health check fails
body: <p>I have deployed my fat jar on elastic beanstalk ok, it is listening on port 5000 and is succesfully connecting to an RDS mysql instance on port 3306.</p>
  
  <p>However, when I try to hit my API I get a 503 backend server overloaded etc error. I looked it up and it seems the cause is that the health check is failing</p>
  
  <p>locally I can check system health with localhost:5000/health provided by spring boot actuator, but when I set /health as the endpoint for the load balancer to health check it fails. Since I don't have any 'healthy instances' running as they fail the health check the server is unavailable to REST requests.</p>
  
  <p>Anyone know how to get the load balancer to succesfully ping the app for a health check ? </p>