Amazon EventBridge API Destinations to Datadog

EventBridge rule → Connection → API Destinations

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

This pattern creates an API Destination for the Datadog Send Logs API. Once deployed, the pattern allows a user to send events easily through EventBridge to Datadog logs. The pattern creates the following resources: EventBridge Bus, EventBridge Connection, EventBridge API Destination, EventBridge rule, IAM role, and SQS queue.
The EventBridge rule uses the API Destination and Connection as a target, SQS queue as a DLQ, and the IAM role as its role. To send events go to the bus and send sample events. To send a log enter “MyDataDogApp” for the source, the bus created by the pattern for the Event Bus Name, and any call that follows the format for the sending logs as the detail (https://docs.datadoghq.com/api/latest/logs/#send-logs).
The following information is needed to use the pattern: Datadog API key: To create the AUTH for the EventBridge Connection.
The IAM role created by the pattern only has the permission to allow InvokeApiDestination access to the EventBridge rule.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

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

Deploy

cd ./7-datadogsam 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:

Omid Khan

Omid Khan

AWS Associate Solutions Architect