Get Alerts from AWS CloudWatch directly on Slack!

Jaya
YellowAnt
Published in
4 min readNov 6, 2018

--

Configure YellowAnt to send an alert on Slack to you or your preferred channel every time an alarm goes off notifying a change in you cloudwatch state. Now, you don’t have to switch windows to monitor, or ever miss an alert from your environment!

First, let’s integrate your AWS CloudWatch with YellowAnt.

Simply follow these steps:

  1. Sign up on YellowAnt with your Slack account. Simply click here.
  2. Go to your YellowAnt Dashboard (yoursubdomain.yellowant.com) or head over to the YellowAnt Marketplace.

3. In the search bar, simply look for “AWS Cloudwatch”, or click on the icon. If you have already integrated the application, you will be able to see it under “My Applications”.

4. Once you find the application either in the dashboard or on the Marketplace click on view. You will be taken to a page where you’ll find the integrate option/button. Click on the integrate button.

5. You will be on the integration page which prompts you to add an account to the application. Click add account which takes you to the AWS Cloudwatch Access page. Note: Select a team before you click “+ ADD ACCOUNT”.

6. In this step, YellowAnt asks you for some details of your AWS Cloudwatch Account for authentication.

7. Fill in the details and hit “SUBMIT”. Your screen should look like this:

8. AWS Cloudwatch is now integrated and you get a message on your chat application for the same. You will be able to see it under your applications in the Dashboard too.

9. To get notifications, follow these steps:

a. Select the “create-webhook”command on slack to get your url for webhook configurations.

b. Alternatively, you will also find the webhook url on your integrations page:

c. The next step is to set up your Cloudwatch alarm. For this, complete the following steps. Go to your SNS dashboard and create a new topic.

d. In the endpoint, past the url we received earlier

e. Click on “create subscription” to find a list of your subscriptions. Refresh this page to confirm.

f. You will get a YellowAnt notification confirming your subscription

g. In your EC2 dashboard, select the topic which you created earlier, and click create alarm.

10. Your AWS Cloudwatch integration is complete and notifications are now set up!

Sit back, and let the magic happen!

YellowAnt will send you all notifications directly on your Slack Window.

You can also use YellowAnt workflows to send all your AWS CloudWatch notifications to a specific channel.

--

--