Lambda Layer Pack for Node.js
Pre-built Lambda layers for Node.js 20: sharp for image processing, Puppeteer for headless Chrome, and a common AWS SDK utility helpers layer. Deploy-ready ZIPs included.
Table of Contents
Lambda Layer Pack — Node.js 20
Three production-ready Lambda layers for Node.js 20. Skip the painful build process: sharp for image resizing, Puppeteer with Chromium for headless browser tasks, and a curated AWS SDK utility helpers layer — all deploy-ready.
What’s Included
- sharp layer — Image processing pre-built for Lambda’s Amazon Linux 2023 environment
- Puppeteer + Chromium layer — Headless Chrome in Lambda using @sparticuz/chromium
- AWS SDK Utils layer — DynamoDB, S3, SSM, Secrets Manager helpers, structured logging, retry with backoff
Developer Experience
Run ./build.sh to npm-install and zip each layer, then ./deploy.sh to publish to Lambda. The utils layer source is fully readable — add your own helpers before deploying.
What You Get
Immediately usable layers, a CloudFormation template, an example Lambda showing all three layers in use, and build/deploy scripts. Saves hours of fighting native module builds.
Requirements
Docker (for building native modules in the Lambda environment), AWS CLI v2, Node.js 20 locally.
Read more here: Source link
