Day 46 - Set up CloudWatch alarms and SNS topic in AWS

Day 46 - Set up CloudWatch alarms and SNS topic in AWS

What is Amazon CloudWatch?

Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the applications you run on AWS in real-time. You can use CloudWatch to collect and track metrics, which are variables you can measure for your resources and applications.

What is Amazon SNS?

Amazon Simple Notification Service is a notification service provided as part of Amazon Web Services since 2010. It provides a low-cost infrastructure for the mass delivery of messages, predominantly to mobile users.

Task :

Create a CloudWatch alarm that monitors your billing and sends an email to you when it reaches $5.

  1. Log in to the AWS Management Console and navigate to Billing Dashboard > Billing Preference and Eenable Cloudwatch billing alerts

  2. Now navigate to the CloudWatch > Billing (Left side panel) > Create Alarm

    Conditions

Additional configuration can be optional, so click on Next

Configure actions

Click on Create topic

Click on Next

Name and description

Click on Next

Preview and create

Click on Create Alarm

A billing alarm is created

Activate the pending subscription by requesting the confirmation to your email

Due to some issue, I was not able to receive the confirmation through

So I added request confirmation through mobile number

Go to SNS and active the Text messaging (SMS) > Subscribe number to topic

Deleting the alarm now

  1. Cloudwatch > Alarm > All alarms

  2. Select the alarm and go actions and Clic on Delete