The following is offered as a solution if you are needing to get source HTML from a site as though you were visiting it (generally after javascript and other basic elements of the DOM have loaded).
- Clone this repository
- Install and setup serverless
- Follow the instructions to obtain selenium to run on lambda at the following github repository (sadly there is no npm for this package at the time of this writing)
- Unzip the selenium libraries in the same folder as your clone
- Deploy using
serverless deploy