Running nightmare on Amazon Linux
You may have thought of running nightmare on AWS Lambda. But before we can run it on Lambda, we need first to make it run on Amazon Linux.
Provision instance which replicates Lambda environment
According to AWS Documentation on Lambda Execution Environment and available Libraries we would need this AMI image with this alias
amzn-ami-hvm-2016.03.3.x86_64-gp2. Keep in mind that AMI-image-id for this instance would be different in different regions (eg):