Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.72 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.72 KB

AWS Log Stream Event Notifier

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

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

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

install by yarn

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

Example

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.