A simple python script to copy dynamodb table
- Python 2.x
- boto (
pip install boto
)
A simple usage example:
$ python dynamodb-copy-table.py src_table dst_table
You can use the environment variables AWS_DEFAULT_REGION
and DISABLE_DATACOPY
to select the region (the default region is us-west-2
) and disable the copying of data from source table to destination table.
$ AWS_DEFAULT_REGION=us-east-1 DISABLE_DATACOPY=yes python dynamodb-copy-table.py src_table dst_table
- Import and Export DynamoDB Data using AWS Data Pipeline
- Original script - had to modify and add support for tables with only hash key