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.327.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 867f49a5311b0c67ff1bc5185d3c277b9797fcc31380de15e49b68596be40be4 |
|
MD5 | e22aa240bfeb71a78bfbbd1a873566fe |
|
BLAKE2b-256 | 89933db8ed248426ef643c818d4578c5a05256464c0ecd72cc7e581f60c6ef02 |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.327-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ec3ea75200f4b96cc2c3a0a9bbeeb662d37bae5560e054291673b57dac91530 |
|
MD5 | 927b08cd3ebe4a4a3f4cb2b562aa83b5 |
|
BLAKE2b-256 | c75dcd2782c75b8af455bf814d09a642f39ef81f8b97bf9b062545ea589c70d5 |