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