从DynamoDB数据导出数据、DynamoDB

2023-09-11 11:54:43 作者:’一个人”

是否有可能将数据从DynamoDB表中的一些格式导出?

Is it possible to export data from DynamoDB table in some format?

具体使用情况是,我想将数据从我的生产dynamodb数据库中导出和导入数据到我的地方dynamodb实例,这样我的应用程序可以使用数据,而不是生产数据的本地副本。

The concrete use case is that I want to export data from my production dynamodb database and import that data into my local dynamodb instance so my application can work with local copy of data instead of production data.

我用链接作为DynamoDB的本地实例。

I use link as a local instance of DynamoDB.

推荐答案

有一个名为工具 DynamoDBtoCSV

这可用于出口​​的所有数据到CSV文件。然而,对于周围的其他方法,你必须建立自己的工具。我的建议是,你添加此功能的工具,它contribuite到Git仓库。

that can be used for export all the data to a CSV file. However, for the other way around you will have to build your own tool. My suggestion is that you add this functionality to the tool, and contribuite it to the Git repository.

另一种方式是使用AWS数据管道这个任务(您将节省从AWS infraestructure之外读取数据的所有费用)。该方法是相似的:

Another way is use AWS Data Pipeline for this task (you will save all the costs of reading the data from outside AWS infraestructure). The approach is similar:

生成管道输出 下载文件。 与自定义读者解析它。