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.411.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b49ae06614309c35e37f656730c57ca6399d871e6bcf5a21abbec7a9e933e401 |
|
MD5 | 19b83e83c5538d1a4201c76882e54020 |
|
BLAKE2b-256 | bf388e050f1310ca17c9d66bb75fdd49d1d0e4b6d01c41c7fab44db1813f456e |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.411-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5a3c36d0a84f49ef70102c0cf75b45ca1918f8e874b498de9dc0d49b7149fb2 |
|
MD5 | fbe525a992f49e0f11bc693099da7ec1 |
|
BLAKE2b-256 | 3148b4000de7ff6b997d8356b33f9d08dad9b71e991d020bad853cd32ed158e0 |