Creating ELB target groups
In this recipe, we will learn how to create an Elastic Load Balancer (ELB) target group. The application load balancer and network load balancer route traffic to ELB target groups, unlike classic load balancers, which route traffic to individual EC2 instances.
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. - A VPC,
awsseccb-vpc, following the Setting up VPC plus VPC resources with minimal efforts recipe from Chapter 5. - Two EC2 instances in the aforementioned
awsseccb-vpcVPC, following the Launching an EC2 instance with a web server using user data recipe in Chapter 5, with the following exceptions. Give names asCloudericks Web ServerandCloudericks Web Server 2, respectively, while creation.
Tip
Name is internally represented using a tag with key set to Name.
- Subnets should be public...