Skip to content

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.

License

Notifications You must be signed in to change notification settings

gammarers/aws-log-stream-event-trigger

Repository files navigation

AWS Log Stram Event Trigger

GitHub npm (scoped) GitHub Workflow Status (branch) GitHub release (latest SemVer)

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

npm install @gammarers/aws-log-stream-event-trigger

install by yarn

yarn add @gammarers/aws-log-stream-event-trigger

Example

import { LogStreamEventTrigger } from '@gammarers/aws-log-stream-event-trigger';

new LogStreamEventTrigger(stack, 'LogStreamEventTrigger');

License

This project is licensed under the Apache-2.0 License.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published