[](https://badge.fury.io/js/cdk-events-notify)
[](https://badge.fury.io/py/cdk-events-notify)




# cdk-events-notify
`cdk-events-notify` is an AWS CDK Construct Library that provides you know who login in your aws console.
## Why
Itβs just a small feature at the moment,
Provides you to trigger Lambda Function push notifications to Line Notify or Slack when you discover Console Login event or swith role event through Cloudtrail.
> Welcome to contribute another event notify case you want.
## Overview

### Now support
* Line Notify
* Slack ([webhooks](https://api.slack.com/messaging/webhooks#posting_with_webhooks))
## You need enable one `Management events` in your account.
> more see https://aws.amazon.com/tw/cloudtrail/pricing/
> 
# You need Line Notify access token
> more see [line notify docs](https://notify-bot.line.me/doc/en/)

## Install
```bash
Use the npm dist tag to opt in CDKv1 or CDKv2:
// for CDKv2
npm install cdk-events-notify
or
npm install cdk-events-notify@latest
```
## π‘π‘π‘ please click [here](https://github.com/neilkuan/cdk-events-notify/tree/cdkv1#readme), if you are using aws-cdk v1.x.x version.π‘π‘π‘
## Usage
```python
import * as cdk from 'aws-cdk-lib';
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 });
```
### To deploy
```bash
cdk deploy
```
### To destroy
```bash
cdk destroy
```
### Finally
* line

* slack

## More about EventBridge and Lambda
* [EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/aws-events.html)
* [Lambda](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html)
> 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](https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html#cloudtrail-integration_signin-regions)
## :clap: Supporters
[](https://github.com/neilkuan/cdk-events-notify/stargazers)
[](https://github.com/neilkuan/cdk-events-notify/network/members)
Raw data
{
"_id": null,
"home_page": "https://github.com/neilkuan/cdk-events-notify.git",
"name": "cdk-events-notify",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Neil Kuan<guan840912@gmail.com>",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/6e/99/0f5cb039e8607678b0695b5e5d13e0e53ff3c0756390158b5c277c5c140f/cdk_events_notify-2.2.578.tar.gz",
"platform": null,
"description": "[](https://badge.fury.io/js/cdk-events-notify)\n[](https://badge.fury.io/py/cdk-events-notify)\n\n\n\n\n\n\n# cdk-events-notify\n\n`cdk-events-notify` is an AWS CDK Construct Library that provides you know who login in your aws console.\n\n## Why\n\nIt\u2019s just a small feature at the moment,\nProvides you to trigger Lambda Function push notifications to Line Notify or Slack when you discover Console Login event or swith role event through Cloudtrail.\n\n> Welcome to contribute another event notify case you want.\n\n## Overview\n\n\n\n### Now support\n\n* Line Notify\n* Slack ([webhooks](https://api.slack.com/messaging/webhooks#posting_with_webhooks))\n\n## You need enable one `Management events` in your account.\n\n> more see https://aws.amazon.com/tw/cloudtrail/pricing/\n> \n\n# You need Line Notify access token\n\n> more see [line notify docs](https://notify-bot.line.me/doc/en/)\n\n\n\n## Install\n\n```bash\nUse the npm dist tag to opt in CDKv1 or CDKv2:\n\n// for CDKv2\nnpm install cdk-events-notify\nor\nnpm install cdk-events-notify@latest\n```\n\n## \ud83d\udca1\ud83d\udca1\ud83d\udca1 please click [here](https://github.com/neilkuan/cdk-events-notify/tree/cdkv1#readme), if you are using aws-cdk v1.x.x version.\ud83d\udca1\ud83d\udca1\ud83d\udca1\n\n## Usage\n\n```python\nimport * as cdk from 'aws-cdk-lib';\nimport { EventNotify } from 'cdk-events-notify';\n\nconst app = new cdk.App();\nconst stack = new cdk.Stack(app, 'integ-stack', { env });\nnew EventNotify(stack, 'LineEventNotify', { lineNotifyToken: process.env.LINE_NOTIFY_TOKEN });\n```\n\n### To deploy\n\n```bash\ncdk deploy\n```\n\n### To destroy\n\n```bash\ncdk destroy\n```\n\n### Finally\n\n* line\n \n* slack\n \n\n## More about EventBridge and Lambda\n\n* [EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/aws-events.html)\n* [Lambda](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html)\n\n> 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](https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html#cloudtrail-integration_signin-regions)\n\n## :clap: Supporters\n\n[](https://github.com/neilkuan/cdk-events-notify/stargazers)\n[](https://github.com/neilkuan/cdk-events-notify/network/members)\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "The Events Notify AWS Construct lib for AWS CDK",
"version": "2.2.578",
"project_urls": {
"Homepage": "https://github.com/neilkuan/cdk-events-notify.git",
"Source": "https://github.com/neilkuan/cdk-events-notify.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "2c68b066e33762b77a13765a385d648f272ed1abbae936c0701fb5b18b112b95",
"md5": "34f9916fa31c0bea6d4e235bd20d4909",
"sha256": "97a73c06f583e3c00c29580dd6a8759789da6a0b3ead0dc592dad23de015abb7"
},
"downloads": -1,
"filename": "cdk_events_notify-2.2.578-py3-none-any.whl",
"has_sig": false,
"md5_digest": "34f9916fa31c0bea6d4e235bd20d4909",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.9",
"size": 36686,
"upload_time": "2025-09-02T00:14:54",
"upload_time_iso_8601": "2025-09-02T00:14:54.613147Z",
"url": "https://files.pythonhosted.org/packages/2c/68/b066e33762b77a13765a385d648f272ed1abbae936c0701fb5b18b112b95/cdk_events_notify-2.2.578-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "6e990f5cb039e8607678b0695b5e5d13e0e53ff3c0756390158b5c277c5c140f",
"md5": "1f14855a1821880729bff8f8fe371174",
"sha256": "9fadae09c17aa8b70d74a0617a11741caf1cfc255fa596300529ae9540da9383"
},
"downloads": -1,
"filename": "cdk_events_notify-2.2.578.tar.gz",
"has_sig": false,
"md5_digest": "1f14855a1821880729bff8f8fe371174",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.9",
"size": 37995,
"upload_time": "2025-09-02T00:14:58",
"upload_time_iso_8601": "2025-09-02T00:14:58.402945Z",
"url": "https://files.pythonhosted.org/packages/6e/99/0f5cb039e8607678b0695b5e5d13e0e53ff3c0756390158b5c277c5c140f/cdk_events_notify-2.2.578.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-02 00:14:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "neilkuan",
"github_project": "cdk-events-notify",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "cdk-events-notify"
}