Using a network load balancer with TLS termination at EC2
Network load balancers are used to load-balance TCP traffic and work at layer 4 of the OSI model. They provide very high performance compared to other load balancer types and can support millions of requests per second, with very low latencies.
Getting ready
To follow this recipe, we need the following:
- A working AWS account,
awsseccb-sandbox-1, and a userawsseccbadmin1, as described in the Technical requirements section. - Create a target group,
cloudericks-tg-tcp, following the Creating ELB target groups recipe of this chapter, but selecting TCP instead of HTTP as the protocol and the port as443. The following resources should have been created as part of the preparation for that recipe – a VPC,awsseccb-vpc, and a security group,cloudericks-web-server. For this recipe, we need an EC2 instance, following the Launching an EC2 Instance with a web server using user data recipe from Chapter 5. - Enable...