Templates

Reduce Lambda Package Size w/ Serverless Framework

How to reduce AWS Lambda package size with webpack

Key Features

Reduce the Size Of Your AWS Lambda Packages
Improve Performance & Reduce Cold Starts
Leverage a Serverless Framework Plugin to Setup
Download

Detailed Overview

When working with AWS Lambda functions you have to be careful of how many dependencies you utilize.

Each dependency adds additional package size which adds extra download time when your AWS Lambda function is invoked.

This pattern shows:

  • Basic Serverless Webpack Usage
  • Include Other Files via Webpack Copy Plugin
  • Refactor to Webpack
Serverless Framework

Gary Jennings

Gary Jennings is a Senior Serverless Consultant at Serverless Guru who specializes in Full Stack Cloud Application Development