Amazon CloudWatch

Hands-On

Demo

Hands-On Demo Overview

Create an EC2 Instance

cloudwatch-demo

Create a Key Pair

cloudwatch-demo-key-pair

Change Permission

chmod 400 cloudwatch-demo-key-pair.pem

Create a SNS Topic

EC2-CPU-Alarm

Select Standard Topic

Create Subscription

learnpde@gmail.com

Confirm Subscription - 1

Confirm Subscription - 1

Create a CloudWatch Alarm

Select Metric

Select your EC2 Instance

High CPU Utilization Alert

Connect to EC2 Instance

stress --cpu 1 --timeout 600
sudo yum install -y stress

Install and Run stress

Email Triggered

Alarm State Changed to In Alarm

Alarm Details

Clean Up

Clean Up - Terminate EC2 Instance

Clean Up -  Delete SNS Topic

Clean Up - Delete SNS Subscription

Clean Up - Delete CloudWatch Alarm

🙏

Thanks

for

Watching