So its the problem with phantomjs... You may need to download and use the phantomjs binary compiled for amazon linux.

I see the mention this one here
https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
You would replace the binary in the zip package you upload to aws.