Configure an Application Load Balancer or Network Load Balancer from the Amazon EC2 Auto Scaling console - Amazon EC2 Auto Scaling
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Configure an Application Load Balancer or Network Load Balancer from the Amazon EC2 Auto Scaling console

Use the following procedure to create and attach an Application Load Balancer or a Network Load Balancer as you create your Auto Scaling group.

To create and attach a new load balancer as you create a new Auto Scaling group
  1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/, and choose Auto Scaling Groups from the navigation pane.

  2. Choose Create Auto Scaling group.

  3. In steps 1 and 2, choose the options as desired and proceed to Step 3: Configure advanced options.

  4. For Load balancing, choose Attach to a new load balancer.

    1. Under Attach to a new load balancer, for Load balancer type, choose whether to create an Application Load Balancer or Network Load Balancer.

    2. For Load balancer name, enter a name for the load balancer, or keep the default name.

    3. For Load balancer scheme, choose whether to create a public internet-facing load balancer, or keep the default for an internal load balancer.

    4. For Availability Zones and subnets, select the public subnet for each Availability Zone in which you chose to launch your EC2 instances. (These prepopulate from step 2.).

    5. For Listeners and routing, update the port number for your listener (if necessary), and under Default routing, choose Create a target group. Alternatively, you can choose an existing target group from the drop-down list.

    6. If you chose Create a target group in the last step, for New target group name, enter a name for the target group, or keep the default name.

    7. To add tags to your load balancer, choose Add tag, and provide a tag key and value for each tag.

  5. (Optional) For Health checks, Additional health check types, select Turn on Elastic Load Balancing health checks.

  6. (Optional) For Health check grace period, enter the amount of time, in seconds. This is how long Amazon EC2 Auto Scaling needs to wait before checking the health status of an instance after it enters the InService state. For more information, see Set the health check grace period for an Auto Scaling group.

  7. Proceed to create the Auto Scaling group. Your instances will be automatically registered to the load balancer after the Auto Scaling group has been created.

    Note

    After creating your Auto Scaling group, you can use the Elastic Load Balancing console to create additional listeners. This is useful if you need to create a listener with a secure protocol, such as HTTPS, or a UDP listener. You can add more listeners to existing load balancers, as long as you use distinct ports.