How it works...
In this recipe, we created a target group for EC2 instances with the HTTP protocol. We can create an application load balancer with a target group with the HTTP or HTTPS protocol. A network load balancer needs a target group with a TCP or TLS protocol. We can also create target groups for IP addresses and AWS Lambda functions. By selecting the IP address option, we can even select public IP addresses that are outside of AWS.
For the health check, we set the protocol to HTTP and the path to /index.html. We can override the port for a health check if needed by selecting the Override option for the port under the Advanced health check settings. We can set the time to wait for a response from instance (timeout), time between ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access