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.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26f7fb05cbffab2c4e63b19e159e3fd9aa126217eb37334fe2019e5b50fda8a1 |
|
MD5 | 31560badc9b721f4da8b7be8b3b537fa |
|
BLAKE2b-256 | e4d449f56db84377e73b6c8d979c98041c93a461f9ac5388e3c515dc62ef1a80 |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d889a4217889d0207e6d028fc054075a006d9bf1643e81b9f40c943bba1d6fec |
|
MD5 | 84c243460887fa5073b355bf1fd60d58 |
|
BLAKE2b-256 | c92cfe99ce6407b6b1b391d8834ce73d56d0bf3b9c41b11549b3753182eaf96d |