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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠