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.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b30295a1fccc13a833179f0864e2d7aba3d0dfa2f130ecfbc7595115b284f0a8 |
|
MD5 | cdf7aa613211e2b9a89e4e6b7980dea8 |
|
BLAKE2b-256 | 0d7fddc58049594d99f2b6b9662a6a66c2ebe636b337583f2ec79d06b48d1fa0 |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f76d4c10c32d510bb843806d9a4c8886b2f9eb7b4356a966210d936b65b83252 |
|
MD5 | dab97a5a8c9b41bdaa0c20b757931f71 |
|
BLAKE2b-256 | ae9a93f6171083ab327bfcde0c915af94f7085fc706d4b4ecaba9fd024bab5d6 |