Skip to main content

cdk-ecr-image-scan-notify is an AWS CDK construct library that notify the slack channel of Amazon ECR image scan results

Project description

NPM version PyPI version Release

cdk-ecr-image-scan-notify

cdk-ecr-image-scan-notify is an AWS CDK construct library that notify the slack channel of Amazon ECR image scan results.

Overview

Amazon EventBridge (CloudWatch Events) detects the image scan execution and starts the Lambda function. The Lambda function summarizes the scan results, formatting them and notifying Slack.

Basic scanning

Enhanced scanning (Support for initial scan only)

Click on an image name to go to the scan results page.

Getting Started

TypeScript

Installation

$ yarn add cdk-ecr-image-scan-notify

Usage

import * as cdk from '@aws-cdk/core';
import { EcrImageScanNotify } from 'cdk-ecr-image-scan-notify';

const mockApp = new cdk.App();
const stack = new cdk.Stack(mockApp, '<your-stack-name>');

new EcrImageScanNotify(stack, 'ecr-image-scan-notify', {
  webhookUrl: '<your-incoming-webhook-url>',
});

Deploy!

$ cdk deploy

Python

Installation

$ pip install cdk-ecr-image-scan-notify

Usage

import aws_cdk.core as cdk
from cdk_ecr_image_scan_notify import EcrImageScanNotify

app = cdk.App()
stack = cdk.Stack(app, "<your-stack-name>", env={'region': 'ap-northeast-1'})

EcrImageScanNotify(stack, "EcrImageScanNotify",
    webhook_url = '<your-incoming-webhook-url>',
)

Deploy!

$ cdk deploy

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk-ecr-image-scan-notify-0.0.276.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdk_ecr_image_scan_notify-0.0.276-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file cdk-ecr-image-scan-notify-0.0.276.tar.gz.

File metadata

  • Download URL: cdk-ecr-image-scan-notify-0.0.276.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for cdk-ecr-image-scan-notify-0.0.276.tar.gz
Algorithm Hash digest
SHA256 43c82d5ad1f7745481c32ae029df16e8977baa07eae49b89a01c37eda45a8377
MD5 39bbeabe68ae7d8e9599b3d25e2bea74
BLAKE2b-256 194ffa78b059332029c1183828dbf6f511c9eeeaedb5db2abb4645364bb58ecb

See more details on using hashes here.

File details

Details for the file cdk_ecr_image_scan_notify-0.0.276-py3-none-any.whl.

File metadata

  • Download URL: cdk_ecr_image_scan_notify-0.0.276-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for cdk_ecr_image_scan_notify-0.0.276-py3-none-any.whl
Algorithm Hash digest
SHA256 3e7a5948a9f29535bb8d00c48e889fd4f9847279d9a8eb981ca07b2514ad2595
MD5 63a2c4c4256ef0427af1375384925109
BLAKE2b-256 ecfbbc0a17d127e7630ee1c989af0ed7562b15df7c2cb53a7d503ea3e848ac20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page