Skip to content

Instantly share code, notes, and snippets.

@sachinroy19
sachinroy19 / dynamodb_replicate_table.py
Created February 28, 2019 08:49 — forked from Dineshkarthik/dynamodb_replicate_table.py
Copy dynamoDB table to another region using python, boto3. This script creates an exact replica of the table with same key schema and attribute definitions.
# Copyright (C) 2018 Dineshkarthik Raveendran
from __future__ import print_function # Python 2/3 compatibility
import boto3
import argparse
def replicate(table_name, existing_region, new_region, new_table_name):
"""
Replicate table in new region.