Integration with Amazon CloudWatch Events


The following example demonstrates how to create an Amazon CloudWatch event using an AWS API webhook.

The request is automatically signed with AWS Signature, v4, implemented by this webhook type, which allows submitting requests to any AWS endpoint that accepts AWS Signature, v4.

The example invokes the Amazon CloudWatch Events API PutEvents action.


Create a new AWS API webhook or import the template used in this example. To import the XML template file, open the Alerts > Outgoing Webhooks page, select Import in the split-button located below the table and complete the upload form.

To create a new webhook, open the Alerts > Outgoing Webhooks page and click Create.


Enter a name and specify the following parameters:

Name Value
Endpoint URL https://events.<AWS_REGION>
Method POST
Content Type application/json

Modify the Endpoint URL by replacing the <AWS_REGION> value with your Amazon CloudWatch Events region, for example:

Enter the AWS key id into the Access Key Id field and the secret key into the Secret Access Key field.

Add required headers for PutEvents action:

Name Value
Content-Type application/x-amz-json-1.1
X-Amz-Target AWSEvents.PutEvents

Modify the Body by replacing the <MESSAGE_TEXT> value with your text, for example:

  "Entries": [
      "Source": "com.mycompany.myapp",
      "Detail": "{ \"key1\": \"value1\", \"key2\": \"value2\" }",
      "Resources": [
      "DetailType": "myDetailType"

Click Test.