In the previous recipe, we created a CloudWatch alarm for a metric without any dimensions. In this small recipe, we will learn how to create a CloudWatch alarm for a metric with dimensions, and we will then verify the alarm by sending some data with dimensions.
CloudWatch alarms with dimensions (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 Your first...