Removes old versions of Lambda functions
Clone or download
Latest commit d70ae42 Nov 14, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit. Nov 14, 2018
CONTRIBUTING.rst Initial commit. Nov 14, 2018
LICENSE Initial commit. Nov 14, 2018
README.rst Update README.rst Nov 14, 2018
clear_lambda_storage.py Initial commit. Nov 14, 2018
requirements.txt Initial commit. Nov 14, 2018

README.rst

Clear Lambda code storage

Motivation

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!

Setup

git clone https://github.com/epsagon/clear-lambda-storage
cd clear-lambda-storage/
pip install -r requirements.txt
python clear_lambda_storage.py

Advanced usage

Provide credentials:

python clear_lambda_storage.py --token_key_id <access_key_id> --token_secret <secret_access_key>