Feature request: parse DynamoDB Stream events via Kinesis Data Stream #3193
Labels
completed
This item is complete and has been merged/shipped
feature-request
This item refers to a feature request for an existing or new utility
parser
This item relates to the Parser Utility
Use case
When working with Amazon DynamoDB Streams and Amazon Kinesis Data Streams, with events being consumed by a AWS Lambda function customers want to parse and validate events before processing them.
In these cases, the change event from the DynamoDB Stream gets encoded and wrapped into a Kinesis Data Stream event that acts as an envelope. The current schemas we have available for both DynamoDB Stream and Kinesis Data Stream are not enough to support this use case.
The current DynamoDBStreamSchema assumes that events come in a shape that looks like this:
On the other hand, when these same events come through a Kinesis Data Stream, they look like this (note that the
data
field actually comes as base64 encoded, in the example below I am presenting it as decoded for easier understanding ):This means it's not possible to use
DynamoDBStreamSchema
to parse thedata
attribute due to the two structures being incompatible.We should work to add support for a new schema specific to this type of integration.
Solution/User Experience
The schema below was successful in earlier tests
Alternative solutions
No response
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.
The text was updated successfully, but these errors were encountered: