Set up CloudWatch alarms and SNS topics in AWS

2 min read

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.

Task :

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

Delete the billing Alarm that you created now.

  1. Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

  2. In the navigation pane, choose Alarms, and then choose All alarms.

  3. Choose Create alarm.

  4. Choose Select metric. In Browse, choose Billing, and then choose Total Estimated Charge.

  5. Select the box for the EstimatedCharges metric, and then choose Select metric.

  6. For Statistic, choose Maximum.

  7. For Period, choose 6 hours.

  8. For Threshold type, choose Static.

  9. For Whenever EstimatedCharges is . . ., choose Greater.

  10. For than . . ., define the value that you want to cause your alarm to trigger. For example, 20 USD.

  11. Choose Additional Configuration and do the following:

    • For Datapoints to alarm, specify 1 out of 1.

    • For Missing data treatment, choose Treat missing data as missing.

Choose Next.

and Done!!

Deleting a billing alarm

You can delete your billing alarm when you no longer need it.

To delete a billing alarm
  1. Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

  2. If necessary, change the Region to US East (N. Virginia). Billing metric data is stored in this Region and reflects worldwide charges.

  3. In the navigation pane, choose Alarms, All alarms.

  4. Select the check box next to the alarm and choose Actions, Delete.

  5. When prompted for confirmation, choose Yes, Delete.

Thank you for your patient Reading!!