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.303.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e2d0640708854c9a6942933421d27a02592a4eac1f9bc0c144d8eae0082bd6d |
|
MD5 | cc7662fc49a4482986482eabfb0a08a6 |
|
BLAKE2b-256 | 08dbbb34a690f45036c7575cf8f7424c5008897eeac3e47416b724cd2988cca7 |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.303-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e4ba17b7eab35d7d98bb53fc6cf99b468fcded7367c2f2b7ac5e287c2fadb1a |
|
MD5 | 5f6ceddd606f008703bbb832aca98ea1 |
|
BLAKE2b-256 | 13447021f06c40a05b552217afd0b663569d3e4be0d21b098299187b6bd99d4a |