CloudWatch alarms enable us to initiate actions based on the state of data within our metrics. These actions may be sent to the Simple Notification Service (SNS). For server-based applications that use autoscaling, CloudWatch alarms can also initiate actions to autoscaling groups.
Setting up CloudWatch alarms (AWS CLI)
Getting ready
The following are the prerequisites for this recipe:
- A working AWS account
- Access to AWS Management Console
- You should have configured AWS CLI as discussed in the recipe Your First Lambda with AWS CLI in Chapter 1, Getting Started with Serverless Computing on AWS
- You should have created a metric with the name FailedLogins and namespace ServerlessProgrammingCookbook following the previous recipe...