/lambda-function-search

Primary LanguageTypeScriptMIT LicenseMIT

lambda-function-search

Search your Lambda functions

oclif Version Downloads/week License

Install

$ npm i -g lambda-function-search

Usage

$ lfs --help
Search Lambda functions

USAGE
  $ lambda-function-search

OPTIONS
  -A, --showAll          Show all function data

  -R, --runtime=runtime  Lambda runtime
                         Example: nodejs, nodejs4.3, nodejs6.10, nodejs8.10, 
                         java8, python2.7, python3.6, python3.7, 
                         dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, 
                         nodejs4.3-edge, go1.x, ruby2.5, provided

  -h, --help             show CLI help

  -p, --profile=profile  AWS CLI profile

  -r, --region=region    region

  -s, --search=search    search by name

Commands

List all Function

$ lfs --region us-east-1
Matched Functions: 5 / 5
====
ContactFormLambda
serverlessContactForm
HelloAlexa
Example
ServerlessTest

List All Functions (ALL Regions)

$ lfs --region all
=== Matched Functions: 5 / 5 ===
Region : ap-northeast-2
ContactFormLambda
serverlessContactForm
HelloAlexa
Example
ServerlessTest
=== Matched Functions: 2 / 5 ===
Region : ap-northeast-1
ContactFormLambda
serverlessContactForm
...

Search by Runtime

$ lfs --region us-east-1 --runtime nodejs6.10 
Search condition: Runtime === nodejs6.10
Matched Functions: 5 / 43
====
ContactFormLambda
serverlessContactForm
HelloAlexa
Example
ServerlessTest

Search by FunctionName

$ lfs --region us-east-1 --search Form
Search condition: FunctionName contains Form
Matched Functions: 2 / 43
====
ContactFormLambda
serverlessContactForm