How can I import bulk data from a CSV file into DynamoDB?

后端 未结 14 1975
我在风中等你
我在风中等你 2021-01-31 15:08

I am trying to import a CSV file data into AWS DynamoDB.

Here\'s what my CSV file looks like:

first_name  last_name
sri ram
Rahul   Dravid
JetPay  Underw         


        
14条回答
  •  自闭症患者
    2021-01-31 15:51

    The simplest solution is probably to use a template / solution made by AWS:

    Implementing bulk CSV ingestion to Amazon DynamoDB https://aws.amazon.com/blogs/database/implementing-bulk-csv-ingestion-to-amazon-dynamodb/

    With this approach, you use the template provided to create a CloudFormation stack including an S3 bucket, a Lambda function, and a new DynamoDB table. The lambda is triggered to run on upload to the S3 bucket and inserts into the table in batches.

    In my case, I wanted to insert into an existing table, so I just changed the Lambda function's environment variable once the stack was created.

提交回复
热议问题