Skip to main content

Backup and restore AWS DynamoDB Table to AWS S3 Bucket with AWS Data Pipeline.

Project description

GitHub npm (scoped) PyPI Nuget Sonatype Nexus (Releases) GitHub Workflow Status (branch) GitHub release (latest SemVer) Gitpod ready-to-code

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",
});

See Importing Data From Amazon S3 to DynamoDB

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

pepperize_cdk_dynamodb_backup-0.0.485.tar.gz (37.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pepperize_cdk_dynamodb_backup-0.0.485-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

pepperize.cdk_dynamodb_backup-0.0.485-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

Details for the file pepperize_cdk_dynamodb_backup-0.0.485.tar.gz.

File metadata

File hashes

Hashes for pepperize_cdk_dynamodb_backup-0.0.485.tar.gz
Algorithm Hash digest
SHA256 a05394a79d1971300e17d1ba6c1039c632e7f51c6170918caba643a05702bffe
MD5 7d19de5545091e2777115d3c55f40d1b
BLAKE2b-256 e393aa676236e51b216c6157e6c39bfd773ac24dcd1649b96f5eb81c6ce668d6

See more details on using hashes here.

File details

Details for the file pepperize_cdk_dynamodb_backup-0.0.485-py3-none-any.whl.

File metadata

File hashes

Hashes for pepperize_cdk_dynamodb_backup-0.0.485-py3-none-any.whl
Algorithm Hash digest
SHA256 cb85682086719c18de421395c4e80be3076490e7fc20fab666554906e41f18d4
MD5 9c422d69d0439230897363103b10ebe5
BLAKE2b-256 ac26d16c70063c6e538580daf39e88ed65d19a06c03d499af74697405d7daec9

See more details on using hashes here.

File details

Details for the file pepperize.cdk_dynamodb_backup-0.0.485-py3-none-any.whl.

File metadata

File hashes

Hashes for pepperize.cdk_dynamodb_backup-0.0.485-py3-none-any.whl
Algorithm Hash digest
SHA256 8f2e036a5a56f4bdae38bcced30c7d0a130ae0f5888e1185536ad4ff5ebb0a5b
MD5 49fc219e9bc3900cfef1bdfc59d0c077
BLAKE2b-256 351f4ed14605d3a747b65a1bb9ae284880c6c5adb0e88f960de81315c2f4b37a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page