I am using a lambda function to send an email using nodemailer which also uses ejs to build a html template that will get sent. My issue is when using ejs.renderFile in the lambda it cant locate the file as I believe only the functions get zipped and uploaded. How do I zip up extra files for the lambda function to access? my mail.js lambda needs to use mailTemplate.ejs and my file structure is below:-
folder structure -
-functions
- templates
- mailTemplate.ejs
mail.js
TIA