Skip to content

This project has simple lambda function which help to clean-up the old version of AWS lambda functions and also can schedule using CloudWatch event to run daily

Notifications You must be signed in to change notification settings

ganeshcpote/clean-aws-lambda-old-versions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clean Lambda Old Versions

AWS limits the total code storage for Lambda functions to 75GB.

The main reason of reaching such size is because for every deployment of existing function, AWS stores the previous version ("qualifier").

Usually, when you reach that point, you want to remove old version. This tool will help you to!

This Lambda function script removes all versions except $LATEST and the newest 50 versions. This script also checks if any version has any alias. It won't delete any version where any alias is using.

You can also schedule this script to run every week by using CloudWatch Event LambdaPostImport

About

This project has simple lambda function which help to clean-up the old version of AWS lambda functions and also can schedule using CloudWatch event to run daily

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages