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.219.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb6b3d1692d0620ed318472630e9a718160e475272dd30fc02a23ecfc5d40895 |
|
MD5 | 1a61362db12d03779d68881b67b644f7 |
|
BLAKE2b-256 | bd2a3eef697b455bcc9b833647bb41781b5273575a07deeccee9b98f5e6ddc99 |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.219-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da5f16b945c0dbc09b16cd22934892902d26119ffd8c366553f8c7dc69489df8 |
|
MD5 | 104eec67635a250d60ee7ca41ef03950 |
|
BLAKE2b-256 | f31a8c5d2afacf2411988877ae4dca603c619332a93ae6c945b5dc7f55ef4f32 |