Amazon EC2 creates servers for web pages and apps. Amazon CloudWatch is a monitoring service that helps manage instances and prevents the overuse of resources or issues. When triggered, it monitors performance and can set alarms for metrics like CPU use or network traffic.
In this Cloud Lab, you’ll first create an EC2 instance and a CloudWatch alarm that will monitor the CPU utilization metric of that instance. You’ll also set up an SNS topic and subscribe with your email address. You’ll then stress the EC2 instance to trigger the alarm, which will perform two actions. First, it will stop the instance, and then it will signal an SNS email notification to your email address.
By the end of this Cloud Lab, you’ll be able to create several CloudWatch alarms to monitor EC2 instances and also to configure what action to perform and which subscribed user to email when an alarm is triggered. You’ll be able to improve the stability and performance of your applications by maximizing and ensuring the health of your AWS resources.
The following is the high-level architecture diagram of the infrastructure that you’ll create in this Cloud Lab: