Skip to content

Enumerate Lambda functions across all regions with useful metadata πŸ’‘πŸ’΅βš™

License

Notifications You must be signed in to change notification settings

ranrib/list-lambdas

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

List Lambda functions

https://github.com/epsagon/list-lambdas/blob/master/list-lambdas.png

(Based on photo by Valve Software / CC BY-SA 4.0)

Motivation

  • Enumerate list of Lambda functions from every region.
  • Detect "dead" or unused Lambda functions.

Setup

git clone git@github.com:epsagon/list-lambdas.git
cd list-lambdas/
pip install -r requirements.txt
python list_lambdas.py

Example Outputs

CLI:

https://github.com/epsagon/list-lambdas/blob/master/examples/cli.png

CSV file:

https://github.com/epsagon/list-lambdas/blob/master/examples/csv.png

Usage

Filter only Lambda functions that has not been active for the past 10 days:

python list_lambdas.py --inactive-days-filter 10

Print extended information to the screen (same as in the CSV file):

python list_lambdas.py --all

Sort by a chosen column (e.g. by last invocation time):

python list_lambdas.py --sort-by last-invocation

Output table (with extra data) to a CSV file:

python list_lambdas.py --csv lambdas.csv

Provide credentials:

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

About

Enumerate Lambda functions across all regions with useful metadata πŸ’‘πŸ’΅βš™

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%