Build and publish an AWS Lambda Layer which provides PDFKit.
- Docker
- Linux
- Node
A layer called pdfkit-aws-lambda-layer will be published with Serverless Framewok.
npm install
npm run release
# release option
npm run release -- --stage dev --region ap-southeast-1If you attach the layer to a lambda function, pdfkit will be installed under /opt/nodejs/node_modules.
const PDFDocument = require('pdfkit');MIT