Amazon EventBridge API Destinations to PagerDuty

EventBridge rule → Connection → API

Create an EventBridge rule and API destination to route events to PagerDuty

This pattern creates an API Destionation for PagerDuty EventsV2 API. This allows a user to forward EventBridge events to PagerDuty and trigger alarms/pages.
The pattern creates a sample EventBus, EventBridge API Connection, EventBridge API Destination, EventBridge Rule, and IAM Role.
To deploy the pattern you need a PagerDuty API Key and Integration Key. Directions to create those can be found here: https://support.pagerduty.com/docs/services-and-integrations & here https://support.pagerduty.com/docs/api-access-keys#section-generating-a-general-access-rest-api-key
The EventBridge Rule matches any events with "PagerDutyDemo" as the source. Then forwards the event to the API Destination triggering the alert in PagerDuty.
The pattern includes a sample event you can send via CLI: aws events put-events --entries file://testEvent.json

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Launch Stack

Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/eventbridge-api-destinations

Deploy

cd ./8-pagerdutysam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: sam delete --stack-name STACK_NAME.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"

Created by:

Dave Dimm

Dave Dimm

Dave is an AWS Technical Account Manager based in the Philadelphia area. Dave helps enterprise customers with their AWS Cloud Journey.

Follow on LinkedIn