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?

gefragt vor 5 Jahren743 Aufrufe
3 Antworten
0
Akzeptierte Antwort

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.

beantwortet vor 5 Jahren
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
beantwortet vor 8 Monaten
0

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

profile picture
beantwortet vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen