Backup and restore AWS DynamoDB Table to AWS S3 Bucket with AWS Data Pipeline.
Project description
CDK DynamoDB Backup & Restore
Backup and restore AWS DynamoDB Table with AWS Data Pipeline.
Install
TypeScript
npm install @pepperize/cdk-dynamodb-backup
or
yarn add @pepperize/cdk-dynamodb-backup
Python
pip install pepperize.cdk-dynamodb-backup
C# / .Net
dotnet add package Pepperize.CDK.DynamodbBackup
Java
<dependency>
<groupId>com.pepperize</groupId>
<artifactId>cdk-dynamodb-backup</artifactId>
<version>${cdkDynamodbBackup.version}</version>
</dependency>
Usage
See API.md.
Backup
Export data from AWS DynamoDB to AWS S3
const table = new aws_dynamodb.Table(stack, "Table", {
partitionKey: { name: "id", type: dynamodb.AttributeType.STRING },
});
const bucket = new aws_s3.Bucket(stack, "Bucket", {});
// When
new DataPipelineBackup(stack, "Account", {
table: table,
backupBucket: bucket,
});
See Exporting Data From DynamoDB to Amazon S3
Restore
Import data from AWS S3 into AWS DynamoDB
const table = new aws_dynamodb.Table(stack, "Table", {
partitionKey: { name: "id", type: dynamodb.AttributeType.STRING },
});
const bucket = new aws_s3.Bucket(stack, "Bucket", {});
// When
new DataPipelineRestore(stack, "Restore", {
table: table,
restoreBucket: bucket,
restoreFolder: "/prefix/to/folder/with/manifest",
});
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pepperize.cdk-dynamodb-backup-0.0.405.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd1ee21b52effe6ce5b7e6f6237b9b5212cc215b02a7413ac0676b92201678bb |
|
MD5 | d6cad78069979a0b62631d210bcf80a5 |
|
BLAKE2b-256 | 8b610a9c4db74986833ba314ba3e0f88af582286b2f26a2c12ad13d97da8e1ce |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.405-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed708652010523d88fc5b5d18b6913c3400e014fd3253dd5394b670f56502b2e |
|
MD5 | c79f06aab57288eabbe68fa9ba1ba55d |
|
BLAKE2b-256 | 1547e7739fd48112fbc38f6d3cc1b1db228a9935e6d8cf642755be12320cd31a |