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.144.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3af6c8080bfbd51a47ccf1700df0f1d0c52440c3af0c6028358f14b83a2de1cc |
|
MD5 | 6054b4cf3ed8ebc9cc2db8801dc25033 |
|
BLAKE2b-256 | 2fc04bb207cd92a6fb276df7bfa7d64f00b223c336812994c35e23974875ec9d |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.144-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f08e235667844af9a4d60a81f500ee5bd2b977088c710737810b77c589e3cb8b |
|
MD5 | c88c9408eaa9e979a6077d0cd8af3d79 |
|
BLAKE2b-256 | ba105e9f0181e1a17f8ac5b611e23c9c4f7047421560b0855d8562ac6e654037 |