Using AWS Lambda to run Python script, how can I save data?

0

I have a script that gathers data from an API, and running this manually on my local machine I can save the data to a CSV or SQLite .db file.

If I put this on AWS lambda how can I store and retrieve data?

已提問 5 年前檢視次數 743 次
3 個答案
0
已接受的答案

with aws lambda you can use database like dynamo db which is not sql database and from there you can download csv file.

with lambda to dynamo bd integration is so easy lambda is serverless and dynamo db is nosql database.

so you can save data into dynamo db also you can use RDS(Mysql) and use man other service but best way will be dynamo db.

已回答 5 年前
0

To see an example of a Lambda function that reads from DynamoDB, install the AWS SAM CLI, then do sam init and choose option 7 7 - Serverless API.

profile picture
已回答 8 個月前
0

You can also save files to S3 from a lambda function - see sample code here

profile picture
已回答 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南