prune-lambda

Prune old lambda functions [fork of aws-lambda-prune]

Usage no npm install needed!

<script type="module">
  import pruneLambda from 'https://cdn.skypack.dev/prune-lambda';
</script>

README

Prune Old Lamda Functions

Use this script to prune older versions of a AWS lambda function. By default the last three versions of the function are kept, as well as the version names "$LATEST" and any versions pointed to by aliases.

Usage

npm install -g prune-lambda
AWS_REGION=<YOUR-REGION> \
    prune-lambda [ --keep 3 ] functionName