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.100.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d8504859141294766cc62725f9c99843e6f43913cf6b2c4fda6a52590c61b46 |
|
MD5 | 32c0a42bd2d48cc0d4486cd2a9f29c09 |
|
BLAKE2b-256 | 9a2d0aaf3c1cc7c2351f11ee2a44e8cb60f7374ae82aebe14f814f2a3d524318 |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.100-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d326f0d0397accd95a0bdf9c7c866513f12bb7306ef3e299857aae006e612525 |
|
MD5 | b6f7d2422c65bbc2407dd97b25498397 |
|
BLAKE2b-256 | 1bb8904d3c3243248d018de6e1ae0b34b0d4a7095a73b2b8c692323bc305aa0f |