Add DynamoDB zero-downtime migration tools - #163
Draft
shiladitya-bits wants to merge 1 commit into
Draft
Conversation
General-purpose zero-downtime table migration for DynamoDB using Streams, Export to S3, and conditional writes for conflict resolution. Package: tools/ddb_migration/ Components: - lambda/stream_replay.py: Stream replay with _migration_ts conflict resolution - glue/backfill_job.py: AWS Glue job for large tables (100+ GiB) - scripts/backfill.py: Standalone backfill for smaller tables - scripts/convergence_check.py: Pre-cutover verification - transform.py: Shared item transformation (customize for schema changes) - deploy.sh: One-command infrastructure setup - iam/policies.json: Least-privilege IAM templates (including cross-account) Use cases: - Migration to Global Tables with MRSC - Cross-account table migration - Key schema restructuring - Table consolidation Tested end-to-end with conflict resolution, tombstones, and MRSC strong consistency verification across 3 regions.
Contributor
|
Let me start by thanking you for this contribution! I'd love you had created an issue first so I could redirect you to the right place. We have a similar project i in the aws-dynamodb-examples repository. We moved the code to that repo because table migrations, in most of the cases, involve custom code, transformations, or particular requirements from customer to customer. Each migration becomes its own ecosystem with assumptions and tradeoffs that are related to each individual customer. I will review the PRs (since there are two about this now) and discuss internally with the team to decide if we move this to the Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
General-purpose zero-downtime table migration for DynamoDB using Streams, Export to S3, and conditional writes for conflict resolution.
Package: tools/ddb_migration/
Components:
Use cases:
Tested end-to-end with conflict resolution, tombstones, and MRSC strong consistency verification across 3 regions.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.