Reference no: EM133731111
Question: For these tasks, you should refer to, and follow, relevant instructions in the official AWS web pages from this week's Required Resources: "What Is Amazon CloudWatch?" "What Is Elastic Load Balancing?" and "What Is Amazon EC2 Auto Scaling?"
TASK: Apply AWS CloudWatch Monitoring Tools and Auto-Scale Services, and Configure Elastic Load Balancing
Log on to AWS Academy using your AWS starter account and click on the AWS Console button.
Launch an Amazon EC2 instance using an AMI with a web server on it or install and configure a very simple web server.
Create a static page to display and a health check page that returns HTTP 200. Configure the Amazon EC2 instance to accept traffic over port 80.
Register the Amazon EC2 instance with the ELB load balancer and configure it to use the health check page to evaluate the health of the instance.
Following the steps in the user guide, use an existing Amazon CloudWatch metric to monitor a value. What other types of metrics were on the metric list?
Create a custom Amazon CloudWatch metric for memory consumption. Use the graphical user interface or command line interface to put values into the metric.
Using the AWS Management Console, create a launch configuration using an existing AMI.
Create an Auto Scaling group using this launch configuration with a group size of four and spanning two Availability Zones. Do not use a scaling policy. Keep the group at its initial size.
Manually terminate an Amazon EC2 instance in the group and observe Auto Scaling launch a new Amazon EC2 instance.
Create an Amazon CloudWatch metric and alarm for CPU utilization using the AWS Management Console.
Using the Auto Scaling group from Step 8, edit the Auto Scaling group to include a policy that uses the CPU utilization alarm. Drive CPU utilization on the monitored Amazon EC2 instance(s) up to observe Auto Scaling.
Following steps in the AWS user guide, create a small web application architected with an ELB load balancer, an Auto Scaling group spanning two Availability Zones that uses an Amazon CloudWatch metric, and an alarm attached to a scaling policy used by the Auto Scaling group.
Verify that Auto Scaling is operating correctly by removing instances and driving the metric up and down to force Auto Scaling.
Close the various administrative consoles and log out of AWS.