Launch EC2 Instance: Set up an EC2 instance named datacenter-ec2 using a suitable Ubuntu AMI.
datacenter-ec2
Create CloudWatch Alarm: Set up a CloudWatch alarm named datacenter-alarm with these details:
datacenter-alarm
Statistic: Average
Metric: CPU Utilization
Threshold: >= 90% for one consecutive 5-minute period.
Alarm Actions: Notify datacenter-sns-topic.
datacenter-sns-topic
Launch instance
Create a default VPC
VPC β Your VPCs β Create default VPC
You successfully created vpc-0e139ab7aa6d8c882.
Now, time to launch the instance
Instance is running now.
Verify SNS Topic
Amazon β SNS β Topics
Select the instance β Actions β Monitor and troubleshoot β Manage CloudWatch Alarms
Name the alarm and mention alarm notification, datacenter-sns-topic.
Create now.
Created CloudWatch alarm: datacenter-alarm
Boom! We have set up an EC2 instance and configured a CloudWatch alarm.
#happylearning #aws #cloud