An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

## AWS log group subscriber [![Build Status](https://travis-ci.org/flow-lab/log-group-subscriber.svg?branch=master)](https://travis-ci.org/flow-lab/log-group-subscriber) [![codecov](https://codecov.io/gh/flow-lab/log-group-subscriber/branch/master/graph/badge.svg)](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