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.
You can create alarms that watch metrics and send notifications or automatically make changes to the resources you are monitoring when a threshold is breached. For example, you can monitor the CPU usage and disk reads and writes of your Amazon EC2 instances and then use that data to determine whether you should launch additional instances to handle the increased load. You can also use this data to stop under-used instances to save money.
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.
It is a cloud-based messaging service that enables developers to send notifications from the cloud to various types of endpoints including email, SMS, mobile push, and more. It’s a fully managed service that allows you to send messages across multiple services and devices quickly and easily.
Task: Create a CloudWatch alarm
Create a CloudWatch alarm that monitors your billing and send an email to you when it reaches $2.
Navigate to the CloudWatch section and then Billing section to create an alarm.
Select the necessary values or you can let the default values remain.
Provide email notification topic and configure the e-mail ID.
E-mail is now received and then we can confirm the subscription to enable the Cloud Watch service.
Provide an Alarm name and sdescription.
Verify all the data and now create an Alarm.
You can navigate to All_alarm to check the alarm created.
We can check in our mail on the total usage of our AWS resources now.
Delete the billing Alarm that you created now.
Thanks for reading my article. Have a nice day.
You can follow me on LinkedIn for my daily updates:- linkedin.com/in/bandan-kumar-sahoo-131412203