Giter Site home page Giter Site logo

neilkuan / cdk-events-notify Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 3.0 8 MB

Provides you to trigger Lambda Function push notifications to Line Notify or Slack when you discover Console Login event or switch role event through Cloudtrail.

Home Page: https://constructs.dev/packages/cdk-events-notify/v/0.3.76?lang=typescript

License: Apache License 2.0

JavaScript 13.95% Python 47.90% TypeScript 38.15%
slack line-notify lambda event

cdk-events-notify's Introduction

NPM version PyPI version Release

Downloads npm PyPI

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

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

Install

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

// for CDKv1
npm install cdk-events-notify@cdkv1 

πŸ’‘πŸ’‘πŸ’‘ please click here, if you are using aws-cdk v1.x.x version.πŸ’‘πŸ’‘πŸ’‘

Usage

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

cdk deploy

To destroy

cdk destroy

Finally

  • line
  • slack

More about EventBridge and Lambda

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

πŸ‘ Supporters

Stargazers repo roster for @neilkuan/cdk-events-notify Forkers repo roster for @neilkuan/cdk-events-notify

cdk-events-notify's People

Contributors

auto-machine avatar github-actions[bot] avatar neilkuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.