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.347.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f415af719c8e59797b627a9b9a174f6d12fc86fab52756a3db415f0594e11b9 |
|
MD5 | 3d3427667ebb8a4cde958d467b49ee3f |
|
BLAKE2b-256 | 65a8afec582eb9f83d7197ab0f0dab9307a8be8e6f40f0cf108fc91e9d113411 |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.347-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c19de0f8a2162fe4c20dc271a341d2e7e98e565a98e4ba2941fda091af9e05a |
|
MD5 | ad0a9b145be0fe58cd11ad6cc780d903 |
|
BLAKE2b-256 | 17b84553c61a6cbd8b4d1d3694a67bee80c804f49825a0d6b6ab218fd39a2ff7 |