Skip to content

epsagon/list-lambdas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

40 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

List Lambdas functions =====================

image

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

Motivation

Setup

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

Docker -----.. code-block:: bash

git clone https://github.com/epsagon/list-lambdas cd list-lambdas/ docker build -t list_lambdas:latest . docker run --rm -v $HOME/.aws:/root/.aws -t list_lambdas:latest --profile myprofile

Example Outputs

CLI:

image

CSV file:

image

Usage

Filter only Lambda functions that have not been active in the last 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>

Releases

No releases published

Packages

No packages published