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.343.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b562df839c8e5cfd93b702670c6559ef544891c2214887c34b69ca2f3eead98 |
|
MD5 | bbfa2affc6022dfafdee8621493b155b |
|
BLAKE2b-256 | b59f83212f48b90cafdf97300b34c4df9e826fdcf5aaeb78498e6b6f62674bd2 |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.343-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe995e2c54808100f689afdc326afc11cd2f5a19be0567819b5308ab26eb3245 |
|
MD5 | 174852c77a79bcba7741385c47252181 |
|
BLAKE2b-256 | 16add62890c38853f8041bbfbddd8fa3431d3e76e6458c75522fe11d45cd8e60 |