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.254.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffd4d10edab58a31d71677ccd161c5dad0330f05c3f117b473f3bffa6fbabb20 |
|
MD5 | 6d193182c0d6ebccdfdeadbd3db681e4 |
|
BLAKE2b-256 | 6c43bfb799c80ac93040941142ecad2045c47d895b5f17a9feab61d16c1974ca |
Close
Hashes for pepperize.cdk_dynamodb_backup-0.0.254-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c363ef30f2c66792d3054b290eb3581421460973ad21249846d0dc623fec3dc |
|
MD5 | 2bb5646bba3500946bf2cdd3f92465e6 |
|
BLAKE2b-256 | 0c77c1dfac9376c05270ef1d824f6074bed9d725d23ae5c9875fa266f03767a1 |