Amazon DynamoDB migration

Loops through an Amazon DynamoDB table to update each record

This workflow first creates a backup of the database. Then it iterates through each record in the database. The workflow manages the pagination to ensure the entire database is handled. Currently it pulls records in groups of 50. The migration logic is handled in the `src/app.py` Lambda function. Update this function to make any migrations you need.

Launch Stack
< Back to all workflows

GitHub icon View this workflow on GitHub


Clone repo

git clone https://github.com/aws-samples/step-functions-workflows-collection/tree/main/dynamodb-migrations/cd step-functions-workflows-collection/synchronous-job

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: sam delete.

Created by:

Eric Johnson

Eric Johnson

Eric Johnson is a Principal Developer Advocate for Serverless Applications at Amazon Web Services and is based in Northern Colorado. Eric is a fanatic about serverless and enjoys helping developers understand how serverless technologies introduces a major paradigm shift in how they approach building and running applications at massive scale with minimal administration overhead. Prior to this, Eric has worked as a developer, solutions architect and AWS Evangelist for an AWS partner company.

Follow on LinkedIn