Set up CloudWatch alarms and SNS in AWS

Unnati GuptaUnnati Gupta
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, 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.

You can use SNS Notification Service to send

a) Application to Application (A2A)

b) Application to Person (A2P)

c) Mobile Text messaging(SMS)

d) Email Messaging

❄Tasks:

Create a CloudWatch alarm that monitors your billing and emails you when it reaches $2.

Step 1: Log in to AWS using the root or IAM users. (if you have permission to create EC2 instance as an IAM user)

Step 2: Search Billing Preferences and change the Alert Preferences by click on edit.

Step 3: Now Search CloudWatch on the Search bar of AWS and go over the Alarm then Create Alarm.

Step 4: To create an Alarm, Select a metric option and click Next.

Step 5: Select Region "N.Virginia" because the billing option is available there.

Step 6: Select USD and click on "Next".

Step 7: Verify the below section. The statistic should be Maximum.

Step 8: For Creating Alarm, when the bill is 2$. Give value 2 and check the threshold type.

Step 9: Check the Additional Configuration, It should be the same.

Step 10: Create a topic for getting an Alarm on your email.

Step 11: Verify Topic "Covid-19" Created Successfully.

Step 12: Create the subscription to subscribe and get the notification from your email ID.

Step 13: After that, you will get one mail in your registered mail-id. Go and subscribe to it, then check the status will change from pending to confirmed.

Step 14: Now Go to Alarm on Configure Sections, and add the topic that you created previously.

Step 15: Give a Name to your alarm, with the same name you will get an email.

Step 16: Now Verify it's created successfully. In state section "OK" is there.

Thank you for giving your precious time to read this blog/article and if any suggestions or improvements are required on my blogs feel free to connect on LinkedIn Unnati Gupta. Happy Learning πŸ’₯πŸ™Œ***!!!***

0
Subscribe to my newsletter

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

Written by

Unnati Gupta
Unnati Gupta

πŸ‘¨β€πŸ’» DevOps Engineer at 6D Technology Passionate about bridging the gap between development and operations, I'm a dedicated DevOps Engineer at 6D Technology. With a strong belief in the power of automation, continuous integration, and continuous delivery, I thrive in optimizing software development pipelines for efficiency and reliability. πŸš€ Exploring the DevOps Universe In my articles, I delve into the fascinating world of DevOps, where I share insights, best practices, and real-world experiences. From containerization and orchestration to CI/CD pipelines and infrastructure as code, I'm here to demystify the complex and empower fellow developers and ops enthusiasts. πŸ“ Blogging for Knowledge Sharing As a tech enthusiast and a lifelong learner, I'm committed to sharing knowledge. My articles aim to simplify complex concepts and provide practical tips that help teams and individuals streamline their software delivery processes. 🌐 Connect with Me Let's connect and explore the ever-evolving landscape of DevOps together. Feel free to reach out, comment, or share your thoughts on my articles. Together, we can foster a culture of collaboration and innovation in the DevOps community. πŸ”— Social Links LinkedIn: https://www.linkedin.com/in/unnati-gupta-%F0%9F%87%AE%F0%9F%87%B3-a62563183/ GitHub: https://github.com/DevUnnati πŸ“© Contact Have questions or looking to collaborate? You can reach me at unnatigupta527@gmail.com Happy Learning!!