4

Hi there, i'm new to AWS. i've running my python code in Lambda. Basically it's calling an http-request and processing the responding JSON to a CSV file. Now, what is the easiest way to transfer that CSV file to a 3rd party FTP Server?

Comments
  • 0
    @rooter hi there, no, i was working on another project, didn't have time to check yet but appreciate your help. I'll let you know as soon as i verified it 👌
  • 0
    @rooter i think a got it.. the only problem is, that i can't test it without a ftp server (not known yet). do you have any preferred Lib for writing tests and/or mock-tests to test the upload function against a mock or something like that?

    and what is the point of using e.g. a queue? i could simply open my local file and stored it with storbinary to a specific path which a navigated to beforehand.
  • 0
    @rooter Hey rooter! the last days i worked on this project and finished it last night *wohoo*. it's a simple python app, so i decided to not go with queueing. i don't expect it to block because it fetches 1 api endpoint, processes 1 json file and writes & transfers 1 csv file per day or per week (not yet decieded). but i will def. have a look into it for further projects and for knowledge ofc. i used the built-in ftplib and could establish a connection to a public test-ftp host. so that worked out fine for me as testing. what really grind my gears right now is to decide whtether to host it on AWS Lambda or even on Google Colaboration using AWS Cloud Watch or Google Cloud Scheduler for automatisation (i want to execute it once a day/week automated). do you have any experience in terms of ease of use and costs with any of these services?
  • 0
    @rooter AWS pricing is worth a rant, actually ^^
  • 0
    @rooter thx for your help, i appreciated it very much!

    also, thx for book and hosting recommendation. didn't know about digital ocean droplets. but the design looks like AWS, doesn't it ?! :D
  • 0
    @rooter your're very welcome, glad i could help with asking questions :) enjoy your weekend!
  • 0
    @rooter either way, enjoy saturday and sunday then :D
Add Comment