https://github.com/gammarers/aws-log-stream-event-trigger
This AWS CDK Construct is a function that serves as a subscription destination for logs output to CloudWatch Logs by a Node.js-based Lambda function. It simply decompresses and parses the received logs as JSON, then outputs the result as a success action of the Lambda function.
https://github.com/gammarers/aws-log-stream-event-trigger
aws cdk construct eventbridge lambda log
Last synced: 3 months ago
JSON representation
This AWS CDK Construct is a function that serves as a subscription destination for logs output to CloudWatch Logs by a Node.js-based Lambda function. It simply decompresses and parses the received logs as JSON, then outputs the result as a success action of the Lambda function.
- Host: GitHub
- URL: https://github.com/gammarers/aws-log-stream-event-trigger
- Owner: gammarers
- License: apache-2.0
- Created: 2024-12-03T02:05:48.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-26T16:51:09.000Z (3 months ago)
- Last Synced: 2025-03-26T17:40:41.002Z (3 months ago)
- Topics: aws, cdk, construct, eventbridge, lambda, log
- Language: TypeScript
- Homepage:
- Size: 883 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 Stram Event Trigger
[](https://github.com/gammarers/aws-log-stream-event-trigger/blob/main/LICENSE)
[](https://www.npmjs.com/package/@gammarers/aws-log-stream-event-trigger)
[](https://github.com/gammarers/aws-log-stream-event-trigger/actions/workflows/release.yml)
[](https://github.com/gammarers/aws-log-stream-event-trigger/releases)This AWS CDK Construct is a function that serves as a subscription destination for logs output to CloudWatch Logs by a Node.js-based Lambda function. It simply decompresses and parses the received logs as JSON, then outputs the result as a success action of the Lambda function.
## Install
### TypeScript
#### install by npm
```shell
npm install @gammarers/aws-log-stream-event-trigger
```#### install by yarn
```shell
yarn add @gammarers/aws-log-stream-event-trigger
```## Example
```typescript
import { LogStreamEventTrigger } from '@gammarers/aws-log-stream-event-trigger';new LogStreamEventTrigger(stack, 'LogStreamEventTrigger');
```
## License
This project is licensed under the Apache-2.0 License.