Skip to content

A repo containing a bash script that will delete all versions of a Lambda function execpt for LATEST

License

Notifications You must be signed in to change notification settings

HurrieCrane/aws-lambda-version-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

aws-lambda-version-cleaner

A repo containing a bash script that will delete all versions of a Lambda function execpt for LATEST

Usage

The script by default uses the default AWS profile or credentials, this is important to keep in mind when using it.

By default this script will require input to delete each lambda version, this is so you can avoid deleting specific versions if you need, as below:

./lambda-version-cleaner <lambda-function-name>

If you'd like the script to just automatically delete lambda versions, without asking for any input, then you can add an option to the command:

./lambda-version-cleaner -a <lambda-function-name>

Disclaimer

This script will delete every lambda version execpt for the LATEST version when -a is added, I'm not responsible if you've accidentally deleted Lambda versions.

About

A repo containing a bash script that will delete all versions of a Lambda function execpt for LATEST

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages