[](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/c8/55/cea2519106d36cef2043bdf4693ec65e7193550e5c17fc9497e943ba5a58/cdk_events_notify-2.2.636.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.636",
"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": "6f44aa34beb98de869fcbd542fff1b953fbc2412fd1dd10e8e522c06b900b14e",
"md5": "71e10f8be53cbbd7827f8d394edd4cc0",
"sha256": "9127057d651d2e40f998702d2d9dd1eb2f4de7016ca700bcf4f7d487f662b3b7"
},
"downloads": -1,
"filename": "cdk_events_notify-2.2.636-py3-none-any.whl",
"has_sig": false,
"md5_digest": "71e10f8be53cbbd7827f8d394edd4cc0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.9",
"size": 37104,
"upload_time": "2025-11-02T00:15:33",
"upload_time_iso_8601": "2025-11-02T00:15:33.514099Z",
"url": "https://files.pythonhosted.org/packages/6f/44/aa34beb98de869fcbd542fff1b953fbc2412fd1dd10e8e522c06b900b14e/cdk_events_notify-2.2.636-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "c855cea2519106d36cef2043bdf4693ec65e7193550e5c17fc9497e943ba5a58",
"md5": "a28feee25ec61ed141ca5c07b9cc4e46",
"sha256": "6ba79569f160e6a66aa82c526cfb86ac5ca862a7fd0b0a3e69d05e8f7954e4d5"
},
"downloads": -1,
"filename": "cdk_events_notify-2.2.636.tar.gz",
"has_sig": false,
"md5_digest": "a28feee25ec61ed141ca5c07b9cc4e46",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.9",
"size": 38311,
"upload_time": "2025-11-02T00:15:37",
"upload_time_iso_8601": "2025-11-02T00:15:37.488634Z",
"url": "https://files.pythonhosted.org/packages/c8/55/cea2519106d36cef2043bdf4693ec65e7193550e5c17fc9497e943ba5a58/cdk_events_notify-2.2.636.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-11-02 00:15:37",
"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"
}