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.69.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a569895c7e0af90ad195e31dc8e6b87cad6038398881337a9e2dad22e62e90be |
|
MD5 | d72a162234abe6a7e79170133c5d31ff |
|
BLAKE2b-256 | e847274b78ddc3056182582abdf3c3002fb7ee8358982942eed09ec1d80ff152 |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.69-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6561cf72ef0c0802f84592de133f1829aafe6e5373dedcc9d4c5775ad7f3d39 |
|
MD5 | 5a01fc3c01137108600134c8ac2e61a4 |
|
BLAKE2b-256 | b70615ff7448e8e3e3475fc9f46fa09d00884cf214cac968c481066a732ec7d5 |