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.232.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb09efd33f2f9740c3650fe8d0ea489ee1eb2f0055cd3668457eaa1f23650ca7 |
|
MD5 | a796c9e3417fa62bb8f3cc227ec0ac47 |
|
BLAKE2b-256 | 7d9f42d250d287258579d5d55782343aff622085daf0fe80f6afba0112a46261 |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.232-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9771e70d6bef5ecb3d95e5524b3fbf4d208bbddc0c934a12f3a6244b017133e3 |
|
MD5 | 0e06a2f5e57e50368215626c3e455358 |
|
BLAKE2b-256 | 0d75406ce303b1d00e4ebc897c868f0a1dfba52ee00517d0eb98b2d598d1f751 |