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.319.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 816362de1af992a513c9e3239d959954ffca379a30a2c3222e8a10fdb855a4ca |
|
MD5 | 376eb9f0231955976116a52c41aabadb |
|
BLAKE2b-256 | 0d27901e7703838dad864510653c95b51a67f89cd249195768f4a103ef0af406 |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.319-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea4a743f3850cfad29c1c601e406b01559c07712dfc86df18dba53cb8806107a |
|
MD5 | 3f8ffa68afccca018591324cddb869ce |
|
BLAKE2b-256 | 8d37415e497c8db7547dcd6a4da1abe1b9d169774440da2473100c15dd97feee |