%global _empty_manifest_terminate_build 0 Name: python-cdk-ecr-image-scan-notify Version: 1.0.242 Release: 1 Summary: cdk-ecr-image-scan-notify is an AWS CDK construct library that notify the slack channel of Amazon ECR image scan results License: Apache-2.0 URL: https://github.com/hayao-k/cdk-ecr-image-scan-notify.git Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c5/03/316ead39de94e1f0d9c7a743f29e0bd0ec2e44b4848791e0e223c1c8d3fc/cdk-ecr-image-scan-notify-1.0.242.tar.gz BuildArch: noarch Requires: python3-aws-cdk-lib Requires: python3-constructs Requires: python3-jsii Requires: python3-publication Requires: python3-typeguard %description [![NPM version](https://badge.fury.io/js/cdk-ecr-image-scan-notify.svg)](https://badge.fury.io/js/cdk-ecr-image-scan-notify) [![PyPI version](https://badge.fury.io/py/cdk-ecr-image-scan-notify.svg)](https://badge.fury.io/py/cdk-ecr-image-scan-notify) ![Release](https://github.com/hayao-k/cdk-ecr-image-scan-notify/workflows/release/badge.svg) # 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 ![](https://raw.githubusercontent.com/hayao-k/cdk-ecr-image-scan-notify/main/images/basic-scanning.png) Enhanced scanning (Support for initial scan only) ![](https://raw.githubusercontent.com/hayao-k/cdk-ecr-image-scan-notify/main/images/enhanced-scanning.png) Click on an image name to go to the scan results page. ![](https://github.com/hayao-k/ecr-image-scan-findings-to-slack/raw/master/docs/images/scan-result.png) ## Getting Started ### TypeScript Installation ``` $ yarn add cdk-ecr-image-scan-notify ``` Usage ```python import * as cdk from 'aws-cdk-lib'; import { EcrImageScanNotify } from 'cdk-ecr-image-scan-notify'; const mockApp = new cdk.App(); const stack = new cdk.Stack(mockApp, ''); new EcrImageScanNotify(stack, 'ecr-image-scan-notify', { webhookUrl: '', }); ``` Deploy! ``` $ cdk deploy ``` ### Python Installation ``` $ pip install cdk-ecr-image-scan-notify ``` Usage ```py import aws_cdk as cdk from cdk_ecr_image_scan_notify import EcrImageScanNotify app = cdk.App() stack = cdk.Stack(app, "", env={'region': 'ap-northeast-1'}) EcrImageScanNotify(stack, "EcrImageScanNotify", webhook_url = '', ) ``` Deploy! ``` $ cdk deploy ``` %package -n python3-cdk-ecr-image-scan-notify Summary: cdk-ecr-image-scan-notify is an AWS CDK construct library that notify the slack channel of Amazon ECR image scan results Provides: python-cdk-ecr-image-scan-notify BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-cdk-ecr-image-scan-notify [![NPM version](https://badge.fury.io/js/cdk-ecr-image-scan-notify.svg)](https://badge.fury.io/js/cdk-ecr-image-scan-notify) [![PyPI version](https://badge.fury.io/py/cdk-ecr-image-scan-notify.svg)](https://badge.fury.io/py/cdk-ecr-image-scan-notify) ![Release](https://github.com/hayao-k/cdk-ecr-image-scan-notify/workflows/release/badge.svg) # 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 ![](https://raw.githubusercontent.com/hayao-k/cdk-ecr-image-scan-notify/main/images/basic-scanning.png) Enhanced scanning (Support for initial scan only) ![](https://raw.githubusercontent.com/hayao-k/cdk-ecr-image-scan-notify/main/images/enhanced-scanning.png) Click on an image name to go to the scan results page. ![](https://github.com/hayao-k/ecr-image-scan-findings-to-slack/raw/master/docs/images/scan-result.png) ## Getting Started ### TypeScript Installation ``` $ yarn add cdk-ecr-image-scan-notify ``` Usage ```python import * as cdk from 'aws-cdk-lib'; import { EcrImageScanNotify } from 'cdk-ecr-image-scan-notify'; const mockApp = new cdk.App(); const stack = new cdk.Stack(mockApp, ''); new EcrImageScanNotify(stack, 'ecr-image-scan-notify', { webhookUrl: '', }); ``` Deploy! ``` $ cdk deploy ``` ### Python Installation ``` $ pip install cdk-ecr-image-scan-notify ``` Usage ```py import aws_cdk as cdk from cdk_ecr_image_scan_notify import EcrImageScanNotify app = cdk.App() stack = cdk.Stack(app, "", env={'region': 'ap-northeast-1'}) EcrImageScanNotify(stack, "EcrImageScanNotify", webhook_url = '', ) ``` Deploy! ``` $ cdk deploy ``` %package help Summary: Development documents and examples for cdk-ecr-image-scan-notify Provides: python3-cdk-ecr-image-scan-notify-doc %description help [![NPM version](https://badge.fury.io/js/cdk-ecr-image-scan-notify.svg)](https://badge.fury.io/js/cdk-ecr-image-scan-notify) [![PyPI version](https://badge.fury.io/py/cdk-ecr-image-scan-notify.svg)](https://badge.fury.io/py/cdk-ecr-image-scan-notify) ![Release](https://github.com/hayao-k/cdk-ecr-image-scan-notify/workflows/release/badge.svg) # 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 ![](https://raw.githubusercontent.com/hayao-k/cdk-ecr-image-scan-notify/main/images/basic-scanning.png) Enhanced scanning (Support for initial scan only) ![](https://raw.githubusercontent.com/hayao-k/cdk-ecr-image-scan-notify/main/images/enhanced-scanning.png) Click on an image name to go to the scan results page. ![](https://github.com/hayao-k/ecr-image-scan-findings-to-slack/raw/master/docs/images/scan-result.png) ## Getting Started ### TypeScript Installation ``` $ yarn add cdk-ecr-image-scan-notify ``` Usage ```python import * as cdk from 'aws-cdk-lib'; import { EcrImageScanNotify } from 'cdk-ecr-image-scan-notify'; const mockApp = new cdk.App(); const stack = new cdk.Stack(mockApp, ''); new EcrImageScanNotify(stack, 'ecr-image-scan-notify', { webhookUrl: '', }); ``` Deploy! ``` $ cdk deploy ``` ### Python Installation ``` $ pip install cdk-ecr-image-scan-notify ``` Usage ```py import aws_cdk as cdk from cdk_ecr_image_scan_notify import EcrImageScanNotify app = cdk.App() stack = cdk.Stack(app, "", env={'region': 'ap-northeast-1'}) EcrImageScanNotify(stack, "EcrImageScanNotify", webhook_url = '', ) ``` Deploy! ``` $ cdk deploy ``` %prep %autosetup -n cdk-ecr-image-scan-notify-1.0.242 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-cdk-ecr-image-scan-notify -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Apr 25 2023 Python_Bot - 1.0.242-1 - Package Spec generated