Lambda function
etiennea opened this issue · 6 comments
Could we have an example of a lambda function for this?
You can easily build an equivalent Lambda function on your own. It took me like 20 lines to code it last time.
I am sorry I am not familiar with Lambda functions. If you write on feel free to submit it though so it can be included as an example :-)
Sure, I can try doing that over the weekend =)...
Sounds good!
@JasonShin Did you look into this at all by chance? I'm curious what your thoughts are for implementing this on Lambda, would you just leave a Chrome instance running on an EC2 box? What all would the Lambda portion be responsible for?
Sorry, guys haha... totally forgot about this ... I wouldn't worry about "bot" aspect of this application at all because you would probably want to use Lambda as a stateless function as a service. I would probably just grab https://github.com/esbenp/pdf-bot/blob/master/src/pdfGenerator.js and turn it into a Lambda function (ideally use Serverless Framework). Another approach would run the "bot" aspect of this app on a separate server and modify it to invoke the Lambda function to generate the PDFs. I will remind myself on Google Calendar to have a look into this weekend.