Skip to main content

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 Slack when you discover Console Login event or switch role event through Cloudtrail.

Welcome to contribute another event notify case you want.

Overview

Now support

Breaking Change: Line Notify support has been removed since #2663. Line Notify service was officially shut down by LINE on 2025-03-31, so this library now supports Slack only. If you need Line Notify functionality, please pin to a version prior to this change.

You need enable one Management events in your account.

more see https://aws.amazon.com/tw/cloudtrail/pricing/

Install

// for CDKv2
npm install cdk-events-notify
or
npm install cdk-events-notify@latest

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, 'SlackEventNotify', {
  slack: {
    slackChannelName: 'your-channel-name',
    slackWebhookUrl: 'https://hooks.slack.com/services/xxx/xxx/xxx',
  },
});

To deploy

cdk deploy

To destroy

cdk destroy

Finally

  • 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

Metadata

Release files for cdk-events-notify 2.3.54

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cdk-events-notify 2.3.54
File Size Uploaded Provenance Actions
cdk_events_notify-2.3.54.tar.gz 39.1 kB Without provenance Details for cdk_events_notify-2.3.54.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cdk-events-notify 2.3.54
File Interpreter ABI Platform Actions
cdk_events_notify-2.3.54-py3-none-any.whl Python 3 none any Details for cdk_events_notify-2.3.54-py3-none-any.whl

Total release size: 77.0 kB

Release files / cdk_events_notify-2.3.54.tar.gz

Download URL cdk_events_notify-2.3.54.tar.gz
Size 39.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dc2d5928420861f65a1297881a124850db0177b543ce4e790cfe17864bdf9ab3
BLAKE2b-256 checksum
How to use checksums
971e2d2c44bb9a593ca0736995149dda9a89598e58cbfc51a71977ad1cb0fd74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.14.5

Release files / cdk_events_notify-2.3.54-py3-none-any.whl

Download URL cdk_events_notify-2.3.54-py3-none-any.whl
Size 37.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52416eb3fd805e281d591298f8ca90ca5eebcbe10c9ba060811b7e967a83f1d1
BLAKE2b-256 checksum
How to use checksums
d73769f0a8c76fe0d02635e2cb07440e4771154be396e1d8037d820e50500b31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.14.5

Security for cdk-events-notify 2.3.54

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.3.54 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page