Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gammarers/aws-log-stream-event-notifier
https://github.com/gammarers/aws-log-stream-event-notifier
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/gammarers/aws-log-stream-event-notifier
- Owner: gammarers
- License: apache-2.0
- Created: 2024-12-04T11:36:50.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-05T02:16:42.000Z (about 1 month ago)
- Last Synced: 2024-12-05T03:20:12.092Z (about 1 month ago)
- Language: TypeScript
- Size: 122 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS Log Stream Event Notifier
[![GitHub](https://img.shields.io/github/license/gammarers/aws-log-stream-event-notifier?style=flat-square)](https://github.com/gammarers/aws-log-stream-event-notifier/blob/main/LICENSE)
[![npm (scoped)](https://img.shields.io/npm/v/@gammarers/aws-log-stream-event-notifier?style=flat-square)](https://www.npmjs.com/package/@gammarers/aws-log-stream-event-notifier)
[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/gammarers/aws-log-stream-event-notifier/release.yml?branch=main&label=release&style=flat-square)](https://github.com/gammarers/aws-log-stream-event-notifier/actions/workflows/release.yml)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/gammarers/aws-log-stream-event-notifier?sort=semver&style=flat-square)](https://github.com/gammarers/aws-log-stream-event-notifier/releases)This AWS CDK Construct detects logs specified by a CloudWatch Logs subscription filter, parses them into JSON on the Lambda side, passes the parsed content to EventBridge, and routes it to a Step Functions state machine. The state machine then publishes the log content to SNS Topic.
## Install
### TypeScript
#### install by npm
```shell
npm install @gammarers/aws-log-stream-event-notifier
```#### install by yarn
```shell
yarn add @gammarers/aws-log-stream-event-notifier
```## Example
```typescript
import { LogStreamEventTrigger } from '@gammarers/aws-log-stream-event-notifier';declare const notificationTopic: sns.Topic;
declare const requestFunction: lambda.Function;new LogStreamEventNotifier(stack, 'LogStreamEventNotifier', {
notificationTopic,
requestFunction,
});```
## License
This project is licensed under the Apache-2.0 License.