• Documentation
  • Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
Kai Hendry

DynamoDB Streams Processing to S3

by

This example shows you how to consume a DynamoDB Stream, transform records, and archive them to S3.

  1. DynamoDB Streams Processing to S3

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.

Contents

  • DynamoDB Streams processing to AWS S3

Related

GuidesPluginsExamplesSlack CommunitySupport