If you only send CloudWatch alarms, use the AWS CloudWatch alert source instead. It’s built for
CloudWatch alarms.
Step 1: create the alert source
- Go to Alerts in your incident.io dashboard and select the Sources tab.
- Press Create source, search for AWS SNS, and continue.
- Give it a name.
Step 2: connect AWS SNS
In the AWS console, open SNS:- Choose Topics and create a Standard topic with the default settings.
- Select the topic and click Create subscription.
- Set Protocol to HTTPS, paste the Endpoint from incident.io, and leave Raw message delivery unchecked.
- Save the subscription. incident.io confirms it automatically, so its status should change to Confirmed.
How alerts behave
- Title and description. The alert title is the message’s Subject, the description is the message body, and the alert links to the topic in the AWS console. Grafana messages use the Grafana alert’s name and description instead.
- Deduplication. The Deduplication key setting decides which messages share an alert. Automatic, the default for new sources, gives one alert per CloudWatch alarm, Inspector or GuardDuty finding, or AWS Health event. Older sources use Each message until you change it. See How are AWS SNS messages deduplicated? for every option.
- Resolution. A CloudWatch
OK, a closed Inspector finding, a closed AWS Health event or a Grafanaresolvedmessage resolves its alert. With Each message, only Grafana alerts resolve on their own. - Security. incident.io rejects any request that SNS didn’t sign.
- Attributes. A JSON message body is under
MessageJSON(such asMessageJSON.team), publisher attributes are underMessageAttributes, and query parameters you add to the endpoint URL are underquery_params. Use these to set alert attributes, for example to map a topic to a team.
Step 3: check it works
Publish a message to the topic from the AWS console. The alert should appear on the alert source page in incident.io within a few seconds. If nothing arrives, check Recent requests on that page. Every request SNS sent is listed there, including any that were rejected, with the reason.Can’t find the alert source you are looking for? Head to our integrations page or message us at support@incident.io.