You are currently viewing How to export a DynamoDB table to S3 bucket using AWS CLI?

How to export a DynamoDB table to S3 bucket using AWS CLI?

How to export a DynamoDB table to S3 bucket using AWS CLI?

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

Today we are going to discuss how to export a DynamoDB table to S3 bucket using AWS CLI.

You can now export a DynamoDB table to an S3 bucket. To export data from an Amazon DynamoDB table to an Amazon S3 bucket, point-in-time recovery (PITR) must be enabled on the source table. You can export table data from any point in time within the PITR window, up to 35 days.

Exporting a table does not consume read capacity on the table, and has no impact on table performance and availability. You can export table data to an S3 bucket owned by another AWS account, and to a different region than the one your table is in. You can choose to export your data in either DynamoDB JSON format or Amazon Ion text format.

How to export a DynamoDB table to S3 bucket using AWS CLI?

Prerequisites:

AWS CLI installed and configured with proper access.

You can use below link to install and configure AWS CLI.

https://cloudaffaire.com/how-to-install-aws-cli/

https://cloudaffaire.com/how-to-configure-aws-cli/

Step 1: Create a DynamoDB table and insert some data that can be exported.

Step 2: Enable point in time recover for your DynamoDB table.

Step 3: Create an S3 bucket where your DynamoDB table will get exported.

Step 4: Export DynamoDB table to an S3 bucket using API:

Step 5: Check if your DynamoDB table was exported to S3 bucket.

Note: It may take some time (generally 1 minutes) for AWS to export your DynamoDB table to S3 bucket.

Step 6: Clean up.

Hope you have enjoyed this article, to get more details on DynamoDB table, please follow below link.

https://docs.aws.amazon.com/dynamodb/index.html

Leave a Reply