[](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/76/7a/81442ecf1e3f402d1fd7de2cf30a7701afe98b8abdb7072923b484ac6736/cdk_events_notify-2.2.537.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.537",
"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": "a9df67d2af7cc7379fb233961fd61a1538c07163968d0271c334137aa8443619",
"md5": "4aa05379a854403e1075ea1cfd8a4315",
"sha256": "e682010b314866383215b04e3dd823fbbc86853138aec2610acf8a55caf07f7d"
},
"downloads": -1,
"filename": "cdk_events_notify-2.2.537-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4aa05379a854403e1075ea1cfd8a4315",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.9",
"size": 36692,
"upload_time": "2025-07-15T00:16:04",
"upload_time_iso_8601": "2025-07-15T00:16:04.217210Z",
"url": "https://files.pythonhosted.org/packages/a9/df/67d2af7cc7379fb233961fd61a1538c07163968d0271c334137aa8443619/cdk_events_notify-2.2.537-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "767a81442ecf1e3f402d1fd7de2cf30a7701afe98b8abdb7072923b484ac6736",
"md5": "045f8fb05aac50953ca5d47fab70b59e",
"sha256": "a55eaa6cc7061e1853aaf6d14e0b5d8efce8e63d7171411bb1fc691bf0254b1e"
},
"downloads": -1,
"filename": "cdk_events_notify-2.2.537.tar.gz",
"has_sig": false,
"md5_digest": "045f8fb05aac50953ca5d47fab70b59e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.9",
"size": 38002,
"upload_time": "2025-07-15T00:16:08",
"upload_time_iso_8601": "2025-07-15T00:16:08.106980Z",
"url": "https://files.pythonhosted.org/packages/76/7a/81442ecf1e3f402d1fd7de2cf30a7701afe98b8abdb7072923b484ac6736/cdk_events_notify-2.2.537.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-15 00:16:08",
"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"
}