George McKinney Adventures in Software Development

May 17, 2025

AWS EC2 Auto Scaling Group

Filed under: AWS — georgemck @ 12:23 pm

AWS Amazon Web Services

Auto Scaling Group using Launch Template and Classic Load Balancer

Command Line Interface CLI

 

1. aws ec2 create-security-group –group-name ELBSG –description “ELB Security Group”

2. aws ec2 authorize-security-group-ingress –group-id sg-XXXXXXXXXXXX –protocol tcp –port 80 –cidr 0.0.0.0/0

3. aws ec2 describe-subnets

4. aws elbv2 create-load-balancer –name CLELB –subnets subnet-XXXXXXXXXXXX subnet-XXXXXXXXXXXX

5. aws ec2 create-launch-template –launch-template-name auto-scaling-template –version-description version1 –launch-template-data ‘{“ImageId”:”ami-0953476d60561c955″,”InstanceType”:”t2.micro”}’

6. aws autoscaling create-auto-scaling-group –auto-scaling-group-name ASG01 –launch-template LaunchTemplateId=lt-XXXXXXXXXXXX –min-size 3 –max-size 5 –vpc-zone-identifier “subnet-XXXXXXXXXXXX,subnet-XXXXXXXXXXXX”

7. aws ec2 describe-instances

 

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URL

Sorry, the comment form is closed at this time.

Powered by WordPress