This Gist is based on Building a continuous delivery pipeline for a Lambda application with AWS CodePipeline
Needed to build a NodeJS project, upload the static assets to an S3 bucket and also deploy a small Lambda function that lived in a subfolder.