cdk-events-notify is an AWS CDK Construct Library that provides you know who login in your aws console.
- Line Notify
- Slack (webhooks)
more see line notify docs
import * as cdk from '@aws-cdk/core';
import { EventNotify } from 'cdk-events-notify';
const app = new cdk.App();
const stack = new cdk.Stack(app, 'integ-stack', { env });
new EventNotify(stack, 'LineEventNotify', { lineNotifyToken: process.env.LINE_NOTIFY_TOKEN });
cdk deploy
cdk destroy
Note: Event Bridge can not cross region , if you console sign in not the cdk-events-notify region will not get the evnet in cloudtrail see this docs