Skip to content

This AWS CDK construct stack subscribes to a CloudWatch Logs log stream, and when a target log level is detected, it sends the log information to a Step Functions state machine via a Lambda function. The state machine processes and formats the log information, then publishes a message to the target SNS topic. But CloudWatch Logs by a Node.js-based

License

Notifications You must be signed in to change notification settings

gammarers/aws-log-stream-event-notification-stack

Repository files navigation

AWS Log Stream Event Notification Stack

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

This AWS CDK construct stack subscribes to a CloudWatch Logs log stream, and when a target log level is detected, it sends the log information to a Step Functions state machine via a Lambda function. The state machine processes and formats the log information, then publishes a message to the target SNS topic. But CloudWatch Logs by a Node.js-based Lambda function only.

Install

TypeScript

install by npm

npm install @gammarers/aws-log-stream-event-notification-stack

install by yarn

yarn add @gammarers/aws-log-stream-event-notification-stack

Example

import { LogStreamEventNotificationStack } from '@gammarers/aws-log-stream-event-notification-stack';

new LogStreamEventNotificationStack(app, 'LogStreamEventNotificationStack');

License

This project is licensed under the Apache-2.0 License.

About

This AWS CDK construct stack subscribes to a CloudWatch Logs log stream, and when a target log level is detected, it sends the log information to a Step Functions state machine via a Lambda function. The state machine processes and formats the log information, then publishes a message to the target SNS topic. But CloudWatch Logs by a Node.js-based

Resources

License

Stars

Watchers

Forks

Packages

No packages published