Skip to content

Demo for generating PDF using Puppeteer on AWS Lambda using Serverless framework

Notifications You must be signed in to change notification settings

crespowang/serverless-lambda-puppeteer

Repository files navigation

serverless-lambda-puppeteer

This is a demo on running Puppeteer on AWS Lambda using Serverless framework. To get it running in your local serverless-offline environment

yarn install
yarn serverless

It will be running on http://localhost:3003/dev/puppeteer/pdf

To deploy to your AWS environment, you need to have your AWS account credentials stored properly, ie run aws configure and replace the profile name in serverless.yml.

To deploy you will need to run

yarn sls deploy

Note that you must send a GET request with Accept: 'application/pdf' header for API Gateway to respond properly.

About

Demo for generating PDF using Puppeteer on AWS Lambda using Serverless framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published