In the CloudWatch console, go to the Alarms section:
Click Create Alarm to start the wizard:
Select the metric you are interested in alerting on. In this case, we will choose By Function Name under Lambda Metrics:
Select the specific metric. You can filter by any of the values in the table. In this case, we will select Errors and click Next:
Define the alarm, giving at least a name and a threshold. In this case, we ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.