title: AWS configure healthcheck EC2
body: <p>I have a load balancer (LB) and an EC2 instance on AWS. My LB has my domain name associated and supports HTTP and HTTPS connections. It has a health-check configured to an endpoint on my EC2 instance (it's running node).</p>
  
  <p>When trying to hit an endpoint via my domain name, the LB doesn't route traffic to my EC2 because it doesn't see it as a healthy instance. I can hit the endpoint directly with the IP address instead. What sort of response do I need to configure so that my EC2 can be recognized as healthy?</p>
  
  <p>Edit: Using an application load balancer.</p>
  
  <p>Edit 2: Health check configuration.</p>
  
  <ul>
  <li>Protocol: HTTPS</li>
  <li>Path : /callback</li>
  <li>Port : 443</li>
  <li>Healthy threshold : 5</li>
  <li>Unhealthy threshold : 2</li>
  <li>Timeout : 5</li>
  <li>Interval : 30</li>
  <li>Success codes : 200</li>
  </ul>