Setting Up an EC2 Instance and Cloud Watch Alarm

Abishek KafleAbishek Kafle
1 min read

Table of contents

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

0
Subscribe to my newsletter

Read articles from Abishek Kafle directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Abishek Kafle
Abishek Kafle

Infosec Poet and CAP-certified DevOps/SecOps Engineer, passionate about security, creativity, and continuous learning.