How to do it...

We can create a target group as follows:

  1. Go to the EC2 service in the console.
  2. Click on Target Groups from the left sidebar.
  3. Click Create target group.
  4. On the Create target group page, enter a meaningful name for the Target group name. For Target type, select Instance. For Protocol, select HTTP. For Port, enter 80. Finally, for VPC, select our default VPC:
  1. Configure the health check settings, as follows:
  1. Click Create. If we go to the Targets tab of our target group, no targets will be attached.
  2. Click on Edit from the

Get AWS Security Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.