Migrating Data From Amazon Redshift into DynamoDB
Asked Answered
T

2

6

There are tons of examples to migrate data from DynamoDB to Redshift, but I couldn't find any example or documentation for migrating data from Redshift to DynamoDB. Any suggestion/example/doc for migrating data from Redshift into DynamoDB in an efficient way?

Tenderloin answered 10/2, 2017 at 11:43 Comment(0)
C
4

One solution which includes writing some code is to use RedShift's unload feature and put the query data into an s3 bucket. By doing so you can handle the Put Event for this specific bucket and either trigger a lambda function that persists data to dynamodb, or send an sqs message to a beanstalk worker which does the same action (persisting data to dynamodb)

Cahra answered 10/2, 2017 at 11:53 Comment(0)
M
0

There are multiple ways you can migrate from Redshift to DynamoDB

You can unload the data from redshift using "UNLOAD" and save the files to s3. From s3 you can use multiple services to migrate the data.

  • You can use aws pipeline to read data from s3 and load into dynamo
  • You can use AWS Glue to read data into its dataframe and load into dynamo -> an approach i prefer
  • You can use s3 import

But you unload from redshift as a redshift json you need to convert into dynamo Json and then load into the DB

Mezzorilievo answered 17/10, 2022 at 5:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.