
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
purge-lambda-versions
Advanced tools
A package to delete old AWS lambda versions.
npm install purge-lambda-versions --save-dev
const { PLV } = require('purge-lambda-versions');
const plv = new PLV({
KEEP_VERSIONS: '{KEEP_VERSIONS}', // [optional] default: 10
AWS_REGION: '{AWS_REGION}', // [optional] default: 'us-east-1'
AWS_ACCESS_KEY_ID: '{AWS_ACCESS_KEY_ID}', // optional if already shell authenticated
AWS_SECRET_ACCESS_KEY: '{AWS_SECRET_ACCESS_KEY}' // optional if already shell authenticated
});
plv.clearFunctions([
{
FUNCTION_NAME: 'lambda-function-name-1'
},
{
FUNCTION_NAME: 'lambda-function-name-2'
}
]).then(
() => {
// ALL DONE
},
error => {
// ERROR
}
);
// you can also provided set the number of versions to provide by function
plv.clearFunctions([
{
FUNCTION_NAME: 'lambda-function-name-1';
KEEP_VERSIONS: 20
},
{
FUNCTION_NAME: 'lambda-function-name-2';
KEEP_VERSIONS: 50
}
]).then(
() => {
// ALL DONE
},
error => {
// ERROR
}
);
plv
--functions lambda-function-name # you can pass multiple function names separated with comma (DO NOT PUT SPACES BETWEEN FUNCTION NAMES)
--keep_versions 10 # [optional] default: 10
--aws_region us-east-1 # [optional] default: us-east-1
--aws_access_key_id your-key # not required of already authenticated within terminal
--aws_secret_key your-secret-key # not required of already authenticated within terminal
The script DO NOT delete the $LATEST version, neither versions binded to alias.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
FAQs
API to delete old AWS Lambda versions
The npm package purge-lambda-versions receives a total of 4 weekly downloads. As such, purge-lambda-versions popularity was classified as not popular.
We found that purge-lambda-versions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.