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.248.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06f5de570a0841e510144175169648a8299097f40cf005508a8a9beabf64e14b |
|
MD5 | 56def6d4f5c1cdf264cdcf5ef102a3e7 |
|
BLAKE2b-256 | fd2b6dd030d8d78c4881caf9b518a5be48d2cfa5ecca8d0d254ed52481201adf |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.248-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ece1fb5078b20b835663c83b7a08131a3b6224857692ba9787d6a76077935224 |
|
MD5 | ee00a3e5cdb8b3d145c9b884686d6d3e |
|
BLAKE2b-256 | 1bad016372a0d4b430f1bcb8b7e29c69206b2768e6eee8fe6f9b89a5e9562ea8 |