Link to blog post here
Sample project to generate a PDF using AWS Lambda, Common Layers, Puppeteer & S3 for storage.
Make sure you have SAM CLI installed and configured. To run, use:
sam local invoke PuppeteerFunction --no-event
Also, make sure to run yarn
inside /layers/shared/nodejs