How to attach a load balancer to an Auto Scaling group in AWS

0 votes

Hi Team,

I have created a load balancer in AWS. I want to attach the load balancer to an Auto Scaling group in AWS. How can I do that?

Nov 26, 2020 in AWS by akhtar
• 38,170 points
50 views

1 answer to this question.

0 votes

Hi@akhtar,

You can attach one or more Classic Load Balancers to the specified Auto Scaling group. Amazon EC2 Auto Scaling registers the running instances with these Classic Load Balancers. The below example attaches the specified load balancer to the specified Auto Scaling group.

$ aws autoscaling attach-load-balancers --load-balancer-names my-load-balancer --auto-scaling-group-name my-auto-scaling-group
answered Nov 26, 2020 by MD
• 95,040 points

Related Questions In AWS

0 votes
1 answer

How to create or update tags for an Auto Scaling group in AWS?

Hi@akhtar, You can create or update tags for the specified ...READ MORE

answered Nov 26, 2020 in AWS by MD
• 95,040 points
84 views
0 votes
1 answer

How to delete an Auto Scaling group in AWS?

You can delete the specified Auto Scaling group. ...READ MORE

answered Nov 26, 2020 in AWS by MD
• 95,040 points
56 views
0 votes
1 answer

How do I disable detailed monitoring for instances in an auto scaling group in a CloudFormation template?

The property you want is InstanceMonitoring, not ...READ MORE

answered Aug 31, 2018 in AWS by Archana
• 4,150 points
337 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to attach an instance to an Auto Scaling group in AWS?

Hi@akhtar, You can attach one or more EC2 instances ...READ MORE

answered Nov 26, 2020 in AWS by MD
• 95,040 points
55 views
0 votes
1 answer

How to create an Auto Scaling group using a launch configuration in AWS?

Hi@akhtar, You can create an Auto Scaling group with ...READ MORE

answered Nov 26, 2020 in AWS by MD
• 95,040 points
56 views