cdk-events-notify


Namecdk-events-notify JSON
Version 0.3.54 PyPI version JSON
download
home_pagehttps://github.com/neilkuan/cdk-events-notify.git
SummaryThe Events Notify AWS Construct lib for AWS CDK
upload_time2021-09-28 00:40:39
maintainer
docs_urlNone
authorNeil Kuan<guan840912@gmail.com>
requires_python>=3.6
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![NPM version](https://badge.fury.io/js/cdk-events-notify.svg)](https://badge.fury.io/js/cdk-events-notify)
[![PyPI version](https://badge.fury.io/py/cdk-events-notify.svg)](https://badge.fury.io/py/cdk-events-notify)
![Release](https://github.com/neilkuan/cdk-s3bucket/workflows/release/badge.svg)

![Downloads](https://img.shields.io/badge/-DOWNLOADS:-brightgreen?color=gray)
![npm](https://img.shields.io/npm/dt/cdk-events-notify?label=npm&color=orange)
![PyPI](https://img.shields.io/pypi/dm/cdk-events-notify?label=pypi&color=blue)

# 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

![](./images/overview.png)

### 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/
> ![](./images/management-events.png)

# You need Line Notify access token

> more see [line notify docs](https://notify-bot.line.me/doc/en/)

![](./images/access-token.png)

## Usage

```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
import aws_cdk.core as cdk
from cdk_events_notify import EventNotify

app = cdk.App()
stack = cdk.Stack(app, "integ-stack", env=env)
EventNotify(stack, "LineEventNotify", line_notify_token=process.env.LINE_NOTIFY_TOKEN)
```

### To deploy

```bash
cdk deploy
```

### To destroy

```bash
cdk destroy
```

### Finally

* line
  ![](./images/line-chat.jpg)
* slack
  ![](./images/slack.jpg)

## 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

[![Stargazers repo roster for @neilkuan/cdk-events-notify](https://reporoster.com/stars/neilkuan/cdk-events-notify)](https://github.com/neilkuan/cdk-events-notify/stargazers)
[![Forkers repo roster for @neilkuan/cdk-events-notify](https://reporoster.com/forks/neilkuan/cdk-events-notify)](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": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Neil Kuan<guan840912@gmail.com>",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/21/3f/3985d3f60f5fca1eaf1dbf96aec94f827fca600617e9513955e5219ffcf6/cdk-events-notify-0.3.54.tar.gz",
    "platform": "",
    "description": "[![NPM version](https://badge.fury.io/js/cdk-events-notify.svg)](https://badge.fury.io/js/cdk-events-notify)\n[![PyPI version](https://badge.fury.io/py/cdk-events-notify.svg)](https://badge.fury.io/py/cdk-events-notify)\n![Release](https://github.com/neilkuan/cdk-s3bucket/workflows/release/badge.svg)\n\n![Downloads](https://img.shields.io/badge/-DOWNLOADS:-brightgreen?color=gray)\n![npm](https://img.shields.io/npm/dt/cdk-events-notify?label=npm&color=orange)\n![PyPI](https://img.shields.io/pypi/dm/cdk-events-notify?label=pypi&color=blue)\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![](./images/overview.png)\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> ![](./images/management-events.png)\n\n# You need Line Notify access token\n\n> more see [line notify docs](https://notify-bot.line.me/doc/en/)\n\n![](./images/access-token.png)\n\n## Usage\n\n```python\n# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826\nimport aws_cdk.core as cdk\nfrom cdk_events_notify import EventNotify\n\napp = cdk.App()\nstack = cdk.Stack(app, \"integ-stack\", env=env)\nEventNotify(stack, \"LineEventNotify\", line_notify_token=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  ![](./images/line-chat.jpg)\n* slack\n  ![](./images/slack.jpg)\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[![Stargazers repo roster for @neilkuan/cdk-events-notify](https://reporoster.com/stars/neilkuan/cdk-events-notify)](https://github.com/neilkuan/cdk-events-notify/stargazers)\n[![Forkers repo roster for @neilkuan/cdk-events-notify](https://reporoster.com/forks/neilkuan/cdk-events-notify)](https://github.com/neilkuan/cdk-events-notify/network/members)\n\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "The Events Notify AWS Construct lib for AWS CDK",
    "version": "0.3.54",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "58175b6260eb3faaae02ee08d7e78e90",
                "sha256": "54e94d906614273630310800c1a8e52bd2afefe889859fbb9723679228431ad6"
            },
            "downloads": -1,
            "filename": "cdk_events_notify-0.3.54-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "58175b6260eb3faaae02ee08d7e78e90",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 30097,
            "upload_time": "2021-09-28T00:40:37",
            "upload_time_iso_8601": "2021-09-28T00:40:37.612841Z",
            "url": "https://files.pythonhosted.org/packages/50/64/b49b17b7168d9510b2ac6f7b12537b15fd0c4b1955cace9050443f0ddf1e/cdk_events_notify-0.3.54-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "65241733b2c479f7ced748375f09e58d",
                "sha256": "a492373c2e2922384117f6e936aa870bcc1085670661862ed951f8cb22f1e037"
            },
            "downloads": -1,
            "filename": "cdk-events-notify-0.3.54.tar.gz",
            "has_sig": false,
            "md5_digest": "65241733b2c479f7ced748375f09e58d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 31149,
            "upload_time": "2021-09-28T00:40:39",
            "upload_time_iso_8601": "2021-09-28T00:40:39.339442Z",
            "url": "https://files.pythonhosted.org/packages/21/3f/3985d3f60f5fca1eaf1dbf96aec94f827fca600617e9513955e5219ffcf6/cdk-events-notify-0.3.54.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-09-28 00:40:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "neilkuan",
    "github_project": "cdk-events-notify.git",
    "lcname": "cdk-events-notify"
}
        
Elapsed time: 0.29863s