Skip to content
Demo for generating PDF using Puppeteer on AWS Lambda using Serverless framework
JavaScript TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
functions
.gitignore
README.md update readme Aug 6, 2019
babel.config.js update readme Aug 6, 2019
package.json update readme Aug 6, 2019
serverless.yml update readme Aug 6, 2019
tsconfig.json
webpack.config.js update readme Aug 6, 2019
yarn-error.log update readme Aug 6, 2019
yarn.lock update readme Aug 6, 2019

README.md

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

In my setup, it will be serving at https://labs.mianio.com/demo/puppeteer/pdf. Note that you must send a GET request with Accept: 'application/pdf' header for API Gateway to respond properly.

You can’t perform that action at this time.