0% found this document useful (0 votes)
49 views

AWS Sysops Course Labs Guide: Sameh Tawfik

This document provides steps to create an Auto Scaling Group that maintains 3 EC2 instances running at all times. It involves creating a launch configuration to define the instance settings, and an Auto Scaling Group that references the launch configuration and integrates with an existing load balancer. Key steps include selecting an AMI and security group for the launch configuration, attaching the Auto Scaling Group to the load balancer target group, and configuring the desired, minimum and maximum capacity of the group to be 3 instances.

Uploaded by

abobakr gamal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

AWS Sysops Course Labs Guide: Sameh Tawfik

This document provides steps to create an Auto Scaling Group that maintains 3 EC2 instances running at all times. It involves creating a launch configuration to define the instance settings, and an Auto Scaling Group that references the launch configuration and integrates with an existing load balancer. Key steps include selecting an AMI and security group for the launch configuration, attaching the Auto Scaling Group to the load balancer target group, and configuring the desired, minimum and maximum capacity of the group to be 3 instances.

Uploaded by

abobakr gamal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

AWS Sysops Course

Labs Guide

Sameh Tawfik
Cloud and DevOps Consultant
https://www.linkedin.com/in/sameh-tawfik-consultant/

Sameh Tawfik sameh.tawfk@gmail.com


LAB3: Create an autoscale group
Summary:

To configure a new Auto Scale Group that guarantees 3 nodes of the EC2 instances always running.
Firstly, to create a lunch configuration will be used to store instance configurations that will be used by
the ASG to create new instance when required. The ASG should be integrate with the existing load
balancer so the newly created EC2 instances will be add by default to the target group.

Steps:

• In the navigation pane, under Auto Scaling, Click on Launch Configurations.


• Click on Create launch configuration.
- For Launch configuration name, enter a name for the new launch configuration.
- For AMI, choose your already created AMI.
- For Instance type, choose t2.micro.
- For Additional configuration, optional
- For Storage, leave the default
- For Security groups, select an existing security group that already allows ssh and https
or create a new security group.
- For Key pair, choose an existing key pair or create a new key pair.
- Check the box of “I acknowledge that I have access to the selected private key file
(Lab.pem), and that without this file, I won't be able to log into my instance”.
- Click on Create launch configuration.
• In the navigation pane, under Auto Scaling, choose Auto Scaling Groups.
• Click on Create Auto Scaling Group.
- For Auto Scaling Group name, enter a name for the new Auto Scaling Group.
- For Launch template, click on Switch to launch configuration
- For Launch configuration, select launch configuration that you have already created.
- Click on Next.
- For VPC, choose the VPC where you need to add your instances.
- For Availability zones and subnets, select multiple ones where to run the EC2 instances
to guarantee the HA.
- Click on Next.
- For Load balancing, choose Attach to an existing load balancer.
- For Attach to an existing load balancer, choose from your load balancer target groups
then Select the previously created load balancer target group.
- For Health checks, check ELB.
- Click on Next.
- For Group size, Desired capacity 3, Minimum capacity 3, Maximum capacity 3.

Sameh Tawfik sameh.tawfk@gmail.com


- Scaling policies, optional
- Click on Next.
- Click on Next.
- Add an optional tag.
- Click on Next.
- Click on Create Auto Scaling group.
• Check if you have 3 new EC2 instances and have been added to the target group.

Sameh Tawfik sameh.tawfk@gmail.com

You might also like