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.
Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.
In the navigation pane, choose Alarms, and then choose All alarms.
Choose Create alarm.
Choose Select metric. In Browse, choose Billing, and then choose Total Estimated Charge.
Select the box for the EstimatedCharges metric, and then choose Select metric.
For Statistic, choose Maximum.
For Period, choose 6 hours.
For Threshold type, choose Static.
For Whenever EstimatedCharges is . . ., choose Greater.
For than . . ., define the value that you want to cause your alarm to trigger. For example, 20 USD.
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
Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.
If necessary, change the Region to US East (N. Virginia). Billing metric data is stored in this Region and reflects worldwide charges.
In the navigation pane, choose Alarms, All alarms.
Select the check box next to the alarm and choose Actions, Delete.
When prompted for confirmation, choose Yes, Delete.
Thank you for your patient Reading!!