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.

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

Getting Started

TypeScript

Installation

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

Usage

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
import aws_cdk.core as cdk
from cdk_ecr_image_scan_notify import EcrImageScanNotify

mock_app = cdk.App()
stack = cdk.Stack(mock_app, "<your-stack-name>")

EcrImageScanNotify(stack, "ecr-image-scan-notify",
    webhook_url="<your-incoming-webhook-url>",
    channel="<your-slack-channel-name>"
)

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>',
    channel =  '<your-slack-channel-name>',
)

Deploy!

$ cdk deploy

Overview

Amazon EventBridge (CloudWatch Events) detects the image scan execution and starts the Lambda function. The Lambda function uses the DescribeImages API to get a summary of the scan results, formatting them and notifying Slack.

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.

Files for cdk-ecr-image-scan-notify, version 0.0.154
Filename, size File type Python version Upload date Hashes
Filename, size cdk_ecr_image_scan_notify-0.0.154-py3-none-any.whl (63.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size cdk-ecr-image-scan-notify-0.0.154.tar.gz (65.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page