AWS CloudWatch Event Rules

Efficiently configure CloudWatch Event Rules integration for incident management with Squadcast - A comprehensive guide on setting up and optimizing CloudWatch rules.
AWS CloudWatch Events delivers a near real-time stream of system events that describe changes in AWS resources. Using simple rules that you can quickly set up, you can match events and route them to one or more target functions or streams.
Route detailed alerts from AWS CloudWatch Event Rules to the right users in Squadcast.

How to integrate AWS CloudWatch Event Rules with Squadcast

  1. 1.
    Navigate to Services -> Service Overview -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click Add.
Integration of Amazon CloudWatch Event Rules as alert source with Squadcast
2. Select Amazon CloudWatch Event Rules. Copy the displayed Webhook URL to configure it within Amazon CloudWatch Event Rules. Finish by clicking Add Alert Source -> Done.
Webhook URL configuration within Amazon CloudWatch Event Rules in Squadcast
When an alert source turns Active, it’ll show up under Configured Alert Sources. You can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.

In AWS: Configure SNS Endpoint

  1. 1.
    Log in to your AWS account and proceed to SNS
  2. 2.
    Click on Create topic
  3. 3.
    Within the dialog box, fill in the details as per your requirements and then click on Create topic
AWS SNS Endpoint Configuration
  1. 4.
    Inside the topic, click on Create Subscription
AWS SNS Topic Creation and Subscription Process
  1. 5.
    Select the protocol as HTTPS and in the endpoint enter the URL you obtained from the previous step
  2. 6.
    Finally, click on Create Subscription to create the subscription
AWS SNS Subscription Creation with HTTPS Endpoint
The Subscription ID for the subscription should immediately change to Confirmed from PendingConfirmation. Click on the refresh button to verify the same.

In AWS: Configure CloudWatch Event Rules

  1. 1.
    Go to CloudWatch and click on Rules under Events
  2. 2.
    Click on Create Rule
Creating CloudWatch Event Rules in AWS
  1. 3.
    Select desired Service Name and Event Type In this example, we're selecting Service Name: EC2 and Event Type: All Events
Selecting Service Name and Event Type in CloudWatch Event Rules
  1. 4.
    Under Targets click on Add Target
  2. 5.
    Select SNS Topic and your topic name from the dropdown In this example, we're selecting Topic: Instance-state-change
Adding SNS Topic as Target in CloudWatch Event Rules
  1. 6.
    Click on Configure rule details. Enter the name of your rule. Add a description as needed
  2. 7.
    Click on Create a rule to save this configuration
Configuring Rule Details in CloudWatch Event Rules
That's it, you are good to go! Your AWS CloudWatch Event Rules integration is complete.
  • Now, whenever an event is triggered that matches your Event Rules, an incident will be created in Squadcast for it.
Q: If an alert gets resolved in AWS CloudWatch Event Rules, does it send auto-resolve signals to Squadcast? A: No, AWS CloudWatch Event Rules does not send auto-resolve signals to Squadcast. Hence, Squadcast incidents from AWS CloudWatch Event Rules should be resolved manually.