Skip to content

Instantly share code, notes, and snippets.

View mickeelm's full-sized avatar

Mikael Elm mickeelm

  • Cygni
  • Österskär, Sweden
View GitHub Profile
@RaphaelManke
RaphaelManke / Restore dynamodb table with cdk.md
Last active June 3, 2022 12:16
step by step guide how to restore a dynamodb table into an existing stack. Example after refactoring the cdk code structure.

Restore DynamoDB in cdk

  1. create a backup of the old table
aws dynamodb create-backup --table-name <old-table-name> --backup-name <some-backup-name>

and remember the arn of the backup -> BACKUP_ARN

  1. deploy the cdk app with the new target table. This table will be empty.