Medium / phantomjs

NPM wrapper for installing phantomjs
Other
1.42k stars 436 forks source link

Integration in AWS Lambda service #704

Open ClementKerneur opened 7 years ago

ClementKerneur commented 7 years ago

Hi, I propose an Compatibility layer for run phantomjs in AWS Lambda functions.

Andriy-Kulak commented 7 years ago

hi @ClementKerneur . Did you get phantom to work on Lambda? I am trying to generate PDFs in lambda with html-pdf library which relies on phantom.js.

I am trying to follow your code in lib/phantom.js but I have trouble understanding your adjustments. Can you please explain in more detail on how you got yours working?

ClementKerneur commented 7 years ago

hi @Andriy-Kulak Sorry for late Lambda functions are executed on their own distribution "Linux Amazon (AMI)" Ideally if you want run binaries : you have to execute the npm install command into the same environnement than your lambda function.

Do you have an example of your code with html-pdf, i would like to compile and test with the best conditions.