blackboard / lambda-selenium

Use Selenium Webdriver and Chrome inside AWS Lambda
MIT License
230 stars 51 forks source link

Zipping method #48

Open Harleylee96 opened 5 years ago

Harleylee96 commented 5 years ago

Hi there,

I want to add more functionalities to the code to test different things. However, If I unzip the file and zip it, upload it to S3 bucket and put it through Lambda, it doesn't work. This was done without changing any files or even opening any files in the unzipped folder.

So I'm wondering how you guys packaged it. Let me know how I can edit the code.

yonatanLehman commented 5 years ago

Make sure you zip the contents of the directory and not the directory. i.e. select lib, node_modules and index.js right click and zip (on windows) and then upload that zip file.