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

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

Day 46 of 90daysofdevops

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 mass delivery of messages, predominantly to mobile users.

Tasks

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

  • In the CloudWatch dashboard, click on "Alarms" in the left-hand sidebar.

  • Click on the "Create alarm" button to start creating a new alarm.

  • Select the "EstimatedCharges" metric. This metric represents the estimated charges on your AWS account.

  • In the "Conditions" section, set the conditions for the alarm.

  • Choose the appropriate operator and specify the value of $2 in the threshold field.

  • Select "Create a new topic" and enter an email address where you want to receive the notification.

  • Optionally, provide a name for the alarm and a description. Click on the "Create topic" button.

  • Select the newly created topic to select it.

  • Verify the email address.

  • Under Name and description, enter a name for your alarm.

  • Billing alarm is created. Once the charges reach or exceed $2, CloudWatch will trigger the alarm.

  • You will receive an email notification at the specified email address.

Delete the billing Alarm that you created now.

  • Select the checkbox of the alarm you want to delete. Navigate and click on Actions. Under it, click on Delete. Again click on Delete.

  • Your alarm will get deleted.

Thank you for reading!!
~Shreya Gupta

Great initiative by the #trainwithshubham community. Thank you Shubham Londhe

#devops #90daysofdevops #aws #iam #cloudwatch #sns