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.111.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 912c0fd2a448f2b26925a0754c4b440d045a71c289a02b0e37aa1ced8ba6cb73 |
|
MD5 | d6b72d14b8b5016eb7b3324433e1e0d7 |
|
BLAKE2b-256 | 903c28f90b47dddf7193fa8bc3e1b8442c2cf00a34230e98e19ab359e52d9024 |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.111-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48b466704ffe33c32984c618691a1da9ae0bff8b0cb8d01d2974c1961ed5b9de |
|
MD5 | 75bcbae576540485c5d49360fa834fd7 |
|
BLAKE2b-256 | 6c61a271d1fc104d40d01824cce81d8deebbb76bc60d2255298c6e5d2e81e849 |