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.66.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 866787ca5cbd56be9b93adb94be30382af420063867f24258aa3fe4e977b2cfc |
|
MD5 | 9fff3f91964c09f5a352d2dc893ac0e7 |
|
BLAKE2b-256 | 0ce644ddd6c8d832429bb8081b5a74277a6cbeb563abca73b2dfe2f97974e4a5 |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.66-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d455d70d70e765d0a1e7145d7596a2f373558f53fa94fb078d8d79ebdb6dad36 |
|
MD5 | 27b93091d25045898dd35ca9ede40099 |
|
BLAKE2b-256 | a7bfacdacb7118dfe8c8e16d70a22387bf9be2a75cd5c7b056b827e1a0af5366 |