CloudWatch alarms
AWS has more than 100 services, and it is not easy to control the behavior of all the services. You need to be informed if some AWS services achieve a specific metric. In Chapter 4, we covered how to create a server with an EC2 service. For example, you define a server for an EC2 service, and sometimes, its CPU usage is more than 90%, causing some performance problems. Another example would be to add a notification if you exceed a specific cost in AWS. For these kinds of scenarios, you can define a metric, and if the metric is reached, you will be notified via email.
In this topic, we are going to create an alarm to notify us if AWS cost exceeds $10 in a month. Let’s implement the application:
- Click In alarm under the Alarms dropdown in the CloudWatch pane:
Figure 7.18 – In alarm
- Click Create Alarm. You can click either the button to the right or the one at the bottom:
Figure...