Migrate a table using Amazon Backup for Cross-account backup and restore - Amazon DynamoDB
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Migrate a table using Amazon Backup for Cross-account backup and restore

Prerequisites

  • Source and target Amazon accounts must belong to the same organization in the Amazon Organizations service

  • Valid Amazon Identity and Access Management (IAM) permissions to create and use Amazon Backup vaults

For more information about setting up cross-account backups, see Creating backup copies across Amazon accounts.

Pricing information

Amazon charges for the backup (based on the table size), any data copying between Amazon Regions (based on the amount of data), for the restore (based on the amount of data), and for any ongoing storage charges. To avoid ongoing charges, you can delete the backup if you don't need it after the restore.

For more information about pricing, see Amazon Backup pricing .

Step 1: Enable advanced features for DynamoDB and cross-account backup

  1. In both the source and target Amazon account, access the Amazon Management Console and open the Amazon Backup console.

  2. Choose the Settings option.

  3. Under Advanced features for Amazon DynamoDB backups, confirm that Advanced features is enabled. If it isn't, choose Enable.

  4. Under Cross-account management, for Cross-account backup, choose Turn On.

Step 2: Create a backup vault in the source account and target account

  1. In the source Amazon accounts, open the Amazon Backup console.

  2. Choose Backup vaults.

  3. Choose Create Backup vault.

  4. Copy and save the Amazon Resource Name (ARN) of the created backup vaults and the target Amazon account.

  5. You'll need the ARNs of both the source and target backup vaults when copying the DynamoDB table backup between accounts.

Step 3: Create a DynamoDB table backup in the source account

  1. On the Amazon Backup Dashboard page, choose Create on-demand backup.

  2. In the Settings section, select DynamoDB as the Resource type, and then select the table name.

  3. In the Backup vault dropdown list, select the backup vault you created in the source account.

  4. Select the desired Retention period.

  5. Choose Create on-demand backup.

  6. Monitor the status of the backup job on the Backup Jobs tab of the Amazon Backup Jobs page.

Step 4: Copy the DynamoDB table backup from the source account to the target account

  1. After the backup job completes, open the Amazon Backup console in the source account and choose Backup vaults.

  2. Under Backups, choose the DynamoDB table backup. Choose Actions and then Copy.

  3. Enter the Amazon Region of the target account.

  4. For External vault ARN, enter the ARN of the backup vault you created in the target account.

  5. In the target account backup vault, enable access from a source account to allow copying backups.

Step 5: Restore the DynamoDB table backup in the target account

  1. In the target Amazon account, open the Amazon Backup console and choose Backup vaults

  2. Under Backups, select the backup you copied from the source account. Choose Actions, then Restore.

  3. Enter the name for the new DynamoDB table, the encryption that this new table will have, the key you want the restore to be encrypted with, and any other options.

  4. When the restore is completed, the table status will show as Active.