This repository contains a complete, working example of running a simple PhantomJS script on AWS Lambda through a NodeJS child process.
First, clone this repository (or download the zip). Next, compress the contents of the folder, and upload the zip file to an AWS Lambda function.
The PhantomJS binary is included in this repository, but if you would like to download it yourself you can get it from the PhantomJS Bitbucket Page; download phantomjs-1.9.8-linux-x86_64.tar.bz2
.