https://github.com/flow-lab/log-group-subscriber
AWS Lambda function that creates a subscription filter for all log groups to dedicated lambda
https://github.com/flow-lab/log-group-subscriber
Last synced: 5 months ago
JSON representation
AWS Lambda function that creates a subscription filter for all log groups to dedicated lambda
- Host: GitHub
- URL: https://github.com/flow-lab/log-group-subscriber
- Owner: flow-lab
- License: mit
- Created: 2018-04-05T18:12:39.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-23T21:06:56.000Z (almost 8 years ago)
- Last Synced: 2024-11-08T10:47:38.264Z (over 1 year ago)
- Language: Go
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## AWS log group subscriber [](https://travis-ci.org/flow-lab/log-group-subscriber) [](https://codecov.io/gh/flow-lab/log-group-subscriber)
Lambda function that creates subscription filters for other lambda function.
```
---------------------------------------
CloudWatch Event | log-subscriber-function |
(every 5 minutes) | 1. Get all log groups |
----------------------> | 2. Group all missing subscriptions |
| 3. Create subscription filters |
| |
---------------------------------------
```
To build run commend below. It compiles sources to `main` binary file and zips
it to deployment package `deployment-123456789.zip`
```sh
./build.sh
```
To deploy to AWS with cloudformation template use `deploy.sh` script