DynamoDB Streams processing to AWS S3
A Lambda function triggered by a DynamoDB Stream that reads each changed record, unmarshalls it from DynamoDB's attribute-value shape, and writes it as JSON to S3 — a pattern you can adapt for change-data-capture, fan-out to other systems, or building a materialized view from table changes.
NOTE: DynamoDB triggers need to be manually associated / setup with the lambda function.
- https://ap-southeast-1.console.aws.amazon.com/dynamodb/home?region=ap-southeast-1#tables:selected=staging_EXAMPLE
- https://ap-southeast-1.console.aws.amazon.com/dynamodb/home?region=ap-southeast-1#tables:selected=production_EXAMPLE
Upon deletion the image.json becomes an empty file, since REMOVE events carry
no NewImage.
For pure backup needs, this is not the right tool: DynamoDB's built-in point-in-time recovery and native table export to S3 already cover that use case without any custom code.