https://github.com/hieuunguyeen/serverless-subscription-filter
Serverless plugin to register subscription filter for Lambda logs :zap: :zap:
https://github.com/hieuunguyeen/serverless-subscription-filter
aws cloudwatch serverless serverless-plugin
Last synced: 17 days ago
JSON representation
Serverless plugin to register subscription filter for Lambda logs :zap: :zap:
- Host: GitHub
- URL: https://github.com/hieuunguyeen/serverless-subscription-filter
- Owner: hieuunguyeen
- License: mit
- Created: 2016-11-02T09:18:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-04T10:02:59.000Z (over 9 years ago)
- Last Synced: 2025-09-26T08:20:12.877Z (8 months ago)
- Topics: aws, cloudwatch, serverless, serverless-plugin
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Serverless plugin
## serverless-subscription-filter
Register and pipe the logs of one lambda to another to process.
[](http://www.serverless.com)
### 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`
```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
```sh
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