Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Athena Write to DynamoDB

What are my options to programmatically run a SQL query on Athena and store the result set in DynamoDB as items or views.

I am looking for a built-in AWS Athena function/API which takes a Query as input and outputs the result set into DynamoDB.

Today Athena API can run given query and store the result set to S3. I am looking for Athena to DynamoDB API

like image 877
auhuman Avatar asked Feb 13 '26 09:02

auhuman


1 Answers

There is no built-in AWS functionality that allows you to get data from Athena to DynamoDB directly.

What you can do instead is to have AWS Data Pipeline running Python script that uses boto3 package to connect to Athena, get the data - and maybe do some pre-processing - and then post it to DynamoDB.

like image 180
YinYang16 Avatar answered Feb 16 '26 22:02

YinYang16



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!