This post is to get basic information/links to understand running Py code on either Lambda or EC2.
My code structure is pretty simple:
import numpy as np
import pandas as pd
#load more packages
input_data = pd.read_csv(...)
def do_stuff(input, parameters):
action1
action2
output.to_csv(...)
plt.save_fig(...)
do_stuff(input_data,input_parameter)
I need to run this code on AWS, but I am not sure which to use: Lambda or EC2.
Also, the input file is on my local PC, and output gets saved to a specific folder. Do I need to save it to the S3. If so, how does the path look like? Do I still use import os
I'm sorry for this noob like question. I need some starting guidance on what should I read to get started. Going through the AWS documentation becomes technical - and from the "Hello World" on Lambda - I couldn't understand much. Due to the lockdown, I'm unable to use my office desktop, and my personal mac cannot handle the loads. The input and output files are pretty small - cumulatively less than 5 MB (there are multiple input files).