Skip to content

Serverless plugin to register subscription filter for Lambda logs ⚡ ⚡

License

Notifications You must be signed in to change notification settings

hieuunguyeen/serverless-subscription-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless plugin

serverless-subscription-filter

Register and pipe the logs of one lambda to another to process.

serverless

Installation

Make sure you have Node.js v4.0+ and Serverless Framework installed Install plugin in the root level of your Serverless project

Supports only Serverless@^1.0.0, lower versions are incompatible

npm install --save-dev serverless-subscription-filter

Append the plugin's name to serverless plugins list in serverless.yml

plugins:
  - serverless-subscription-filter

Current supports:

  1. Register a subscription filter for a lambda by its name
  2. Remove a subscription filter for a lambda using its name and the filter name

Incoming supports:

  1. Load settings from a file by path
  2. Batch + Async execution
  3. More? Bring it on!

Usage

serverless subscriptionfilter register --function sourceFunction --target targetFunction --pattern patternToFilter --name nameOfTheFilter

-f --function The source function's name, name are how you describe in serverless.yml

-t --target The target function's name, name are how you describe in serverless.yml

-p --pattern The pattern to filter for

-n --name Name of the subscription filter

About

Serverless plugin to register subscription filter for Lambda logs ⚡ ⚡

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published