title: How do I send a notification to Slack from AWS CloudWatch on a specific error?
body: <p>I'm trying to setup notifications to be sent from our AWS Lambda instance to a Slack channel. I'm following along in this guide:</p>
  <p><a href="https://medium.com/analytics-vidhya/generate-slack-notifications-for-aws-cloudwatch-alarms-e46b68540133" rel="nofollow noreferrer">https://medium.com/analytics-vidhya/generate-slack-notifications-for-aws-cloudwatch-alarms-e46b68540133</a></p>
  <p>I get stuck on step 4 however because the type of alarm I want to setup does not involve thresholds or anomalies. It involves a specific error in our code. We want to be notified when users encounter errors when attempting to login in or sign up. We have try/catch blocks in our Node.js backend to log errors to CloudWatch at various points in the login/signup flow where we think the errors are most likely happening. We would like to identify when those SPECIFIC errors are occurring and send a notification to a Slack channel built for this purpose.</p>
  <p>So in step 4 of the article, what would I have to do to set this up? Or is the approach in this article simply the wrong one for my purposes?</p>
  <p>Thanks.</p>