A toolchain for AWS DynamoDB to make common operations (backup, restore backups) easier.
Project description
A toolchain for Amazon’s DynamoDB to make common operations (backup, restore backups) easier. Currently contains:
dynamodb-dumper - backup tables out of DynamoDB with ease.
dynamodb-loader - restore tables dumped by dynamodb-dumper with ease.
All tools are built to work with both the main DynamoDB service and DynamoDB Local so you can test them out, and also move data easily between production and your test environment, or between Dynamo regions.
Install with:
pip install dynamodb_utils
Usage Examples
You can get the (hopefully detailed enough) help with e.g.:
dynamodb-dumper --help
To dump a table, with compression:
dynamodb-dumper mytable.name --compress
To dump just a few hash-key values from a table (for example, if you want a restricted subset of data for development):
dynamodb-dumper mytable.name --compress --hash-keys 101 104 404
To load some compressed dump files on a DynamoDB Local instance running locally on port 3232:
dynamodb-loader mytable.name --host http://localhost:3232 --region localhost --load mytable.name.*.dump.gz
The tools are based upon PynamoDB, which is based upon botocore. Therefore, credentials will be read from one of many places - IAM Role, environment variables, or a ‘boto file’. See the boto documentation for more details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for dynamodb_utils-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c630b2a042d7245601b7e3ee6e8bd35f5faf53ff5201e923614bedf3730fa9f8 |
|
MD5 | 73297f2fce39dd46f2a401cd22a9fdee |
|
BLAKE2b-256 | faf4b3133e4bab5ab034364ac5d5bbf08a8ef11b63c5bd9eb899c4931b3a0b15 |
Hashes for dynamodb_utils-1.0.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3320955df0c4b7db2ec2e8d6715395c9fb71763e3de797d03dbfe0f5469d74a |
|
MD5 | 9aaac89b6c085719000b81e384fc117a |
|
BLAKE2b-256 | 8448e5e26b9ae4f903067fd07baf7bacc3187992129651687fa98745ef7dadc4 |