Amazon DynamoDB to Amazon EventBridge using Amazon EventBridge Pipes.

Amazon DynamoDB → Amazon EventBridge Pipes → Amazon EventBridge

This pattern takes a change data capture event from DynamoDB, removes the data type descriptors and sends the simplified event to an EventBridge bus.

The key components of this architecture are DynamoDB as source and EventBridge as target, connected by a pipe. To demonstrate the end-to-end message flow, the Lambda function writes sample data to the DynamoDB table.
The pattern uses an input transformer to change the event's structure from DynamoDB's response format, which includes data type descriptors, to a simpler JSON structure. The input transformer also allows us to transform the list using the following notation: <$.dynamodb.NewImage.list.L[*].S>

< 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/dynamodb-eventbridge-transformer

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk delete.

Created by:

Dominik Richter

Dominik Richter

Solutions Architect at AWS, passionate about event-driven architectures and Serverless.

Follow on LinkedIn