Question: Question 2 : ( 8 0 Marks ) . You are asked to use Auto Scaling using the default VPC to automatically launch Amazon EC

Question 2: (80 Marks).
You are asked to use Auto Scaling using the default VPC to automatically launch Amazon EC2 instances in response to conditions specified. Then, test the Auto Scaling by terminating two running instances and observe while Auto Scaling automatically creates replacement instances.
2.1 Create a VPC Security Group called WebDMZ to permit access for web traffic via HTTP.
2.2 Create an Auto Scaling group using the Launch Configuration. To create an Auto Scaling Groups, it will be a good idea to first create a Launch Configuration.
Create a Launch Configuration, and configure it as follows:
a. Your instance must run amazon Linux 2 AMI.
b. Instance type: t2.micro.
c. Name: MyASG-LG.
d. Use the Boot Strap Scripts in the appendix.
e. Use the default storage.
f. Assign security group: Select an existing security group created in Question 2.1.
g. Create and launch configuration with or without a key.
Create an Auto Scaling Groups, and configure it as follows:
a. Name = pracASG.
b. Group size =3.
c. Subnet = Select three subnets.
d. Scale your instances between 3 and 6.
e. Scale group size:
Metric type = Average CPU utilisation
Target value =80
Instances need =60 seconds
f. Add tag: Name = MyPracASG.
2.3 Test your Auto Scaling by simulating instances failover.
Note: the minimum size for your Auto Scaling group is 3 instances. Thus, if you simulate a failover by terminating two running instances, Auto Scaling must launch new instances to replace them.
NOTE: Ensure all configuration screenshots are in the final document.
 Question 2: (80 Marks). You are asked to use Auto Scaling

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!