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.
npm install @gammarers/aws-log-stream-event-notification-stack
yarn add @gammarers/aws-log-stream-event-notification-stack
import { LogStreamEventNotificationStack } from '@gammarers/aws-log-stream-event-notification-stack';
new LogStreamEventNotificationStack(app, 'LogStreamEventNotificationStack');
This project is licensed under the Apache-2.0 License.