Gathering detailed insights and metrics for serverless-autoprune-plugin
Gathering detailed insights and metrics for serverless-autoprune-plugin
Gathering detailed insights and metrics for serverless-autoprune-plugin
Gathering detailed insights and metrics for serverless-autoprune-plugin
Serverless 0.5.x plugin to delete old AWS Lambda versions
npm install serverless-autoprune-plugin
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
9 Stars
8 Commits
4 Watchers
1 Branches
1 Contributors
Updated on Jan 28, 2023
Latest Version
0.2.1
Package Id
serverless-autoprune-plugin@0.2.1
Size
4.65 kB
NPM Version
3.8.3
Node Version
5.10.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This Serverless 0.5.x plugin deletes old AWS Lambda versions.
The plugin lets you delete old AWS Lambda versions from your account.
serverless-autoprune-plugin
is heavily inspired by Nopik's
serverless-lambda-prune-plugin
but adds some much needed functionality such as limiting pruning to a specific region, project and function.
It is fully compatible with Serverless 0.5.5 and higher.
Install the plugin module.
npm install serverless-autoprune-plugin --save
will install the latest version of the plugin.
If you want to debug, you also can reference the source repository at a specific version or branch
with npm install https://github.com/arabold/serverless-autoprune-plugin#<tag or branch name>
Activate the plugin in your Serverless project.
Add serverless-autoprune-plugin
to the plugins array in your s-project.json
.
{
"name": "my-project",
"custom": {},
"plugins": [
"serverless-autoprune-plugin"
]
}
This plugin hooks into the Serverless function deploy
command action and
extends it with two additional options:
-p|--prune
: Delete previous Lambda versions after deployment.-n|--number <number>
: keep last N versions (defaults to 3).A simple example to deploy and prune all functions in your project:
serverless function deploy --all --prune
If you only want to delete old versions without deploying a new one, use the new prune
command action:
serverless function prune [OPTION]... [FUNCTION]...
You can specify one or multiple function names to prune, omit any function names to prune the
functions in the current directory tree, or specify the -a
or --all
option to prune all
functions of the project.
Available options are:
-s|--stage <stage>
: prune only a specific stage (only applicable if your Lambda
functions use different names per stage)-r|--region <region>
: prune only a specific region (defaults to all regions).-n|--number <number>
: keep last N versions (defaults to 3).-a|--all
: prune all functions of the current project.--prune
to your
serverless function deploy
will automatically delete previous Lambda versions.aws-sdk
as dependency in case it's not installed globallyNo vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More