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.214.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 395bd69806fb7029b82e65c3ad9ad2aef3a40e825319e8a23405ba876efd9322 |
|
MD5 | 79b1eb55576cb4965eae6d605a98e5f8 |
|
BLAKE2b-256 | 03f9af44aaa0332283c3ab8b9873a311e6a32920fe2b21f3bd4525b6a507abe5 |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.214-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ab3c2c9cb1bf40098bb205306f21870a3c7611a5bb429813d4fde504c66e3c8 |
|
MD5 | 52c18cf7bebfa3e081e6fa30beabfb86 |
|
BLAKE2b-256 | eb6b0c00a16e39cd0d1580233968c2f2025bbf89c3fe48f794540aa012e58763 |