EC2 Instance Setup and Cloud Watch Alarm

Setting Up an EC2 Instance and Cloud Watch Alarm

Setting Up an EC2 Instance and Cloud Watch Alarm

How to Configure EC2 Instances and Cloud Watch Alarms

Tasks

  1. Launch EC2 Instance: Set up an EC2 instance named datacenter-ec2 using a suitable Ubuntu AMI.

  2. Create CloudWatch Alarm: Set up a CloudWatch alarm named datacenter-alarm with these details:

    • Statistic: Average

    • Metric: CPU Utilization

    • Threshold: >= 90% for one consecutive 5-minute period.

    • Alarm Actions: Notify datacenter-sns-topic.

Steps

  1. Launch instance

  2. Create a default VPC

    VPC → Your VPCs → Create default VPC

  3. You successfully created vpc-0e139ab7aa6d8c882.

  4. Now, time to launch the instance

  5. Instance is running now.

  6. Verify SNS Topic

    Amazon → SNS → Topics

  7. Select the instance → Actions → Monitor and troubleshoot → Manage CloudWatch Alarms

  8. Name the alarm and mention alarm notification, datacenter-sns-topic.

  9. Create now.

  10. Created CloudWatch alarm: datacenter-alarm

  11. Boom! We have set up an EC2 instance and configured a CloudWatch alarm.

    #happylearning #aws #cloud