Nopik / serverless-lambda-prune-plugin

Delete old versions of AWS lambdas from your account

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serverless Lambda Prune Plugin

When developing with Serverless framework your AWS account will quickly hit the 1.5GB total lambda size limit. This plugin will iteratively scan all lambdas in your AWS account (not only lambdas defined in the project!) and remove their old versions.

Most recent versions and versions with aliases are not deleted.

Installation

npm install serverless-lambda-prune-plugin

Usage

sls function prune

Options:

--number number / -n number: keep number most recent versions (default: 5)

About

Delete old versions of AWS lambdas from your account


Languages

Language:JavaScript 100.0%