Metadata-Version: 2.1
Name: ecr-scan-notifier
Version: 0.0.5
Summary: Notifies on new AWS ECR scan results
Home-page: https://github.com/stefanfreitag/cdk-ecr-scan-notifier.git
Author: Stefan Freitag<stefan.freitag@rwe.com>
License: Apache-2.0
Project-URL: Source, https://github.com/stefanfreitag/cdk-ecr-scan-notifier.git
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: JavaScript
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Typing :: Typed
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved
Requires-Python: ~=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# CDK ECR Scan Notifier

A CDK construct capable of forwarding ECR scan results to an SNS topic.

## Sample Events

* ECR Basic Scan

  ```json
  {
     "version":"0",
     "id":"822c3bbb-574a-8d0b-828e-b33e93cc0b3a",
     "detail-type":"ECR Image Scan",
     "source":"aws.ecr",
     "account":"012345678912",
     "time":"2022-08-03T18:14:18Z",
     "region":"eu-central-1",
     "resources":[
        "arn:aws:ecr:eu-central-1:012345678912:repository/sampleapp"
     ],
     "detail":{
        "scan-status":"COMPLETE",
        "repository-name":"sampleapp",
        "image-digest":"sha256:5b5a96370efd56ae20a832244ae56e8e57b1035f493f728eb6cef026586782f7",
        "image-tags":[
           "3862",
           "latest"
        ],
        "finding-severity-counts":{
           "HIGH":3,
           "MEDIUM":14,
           "INFORMATIONAL":3,
           "LOW":1,
           "HIGH":2
        }
     }
  }
  ```
* AWS Inspector

  ```json
  {
     "version":"0",
     "id":"961d7f4a-f46c-b376-f92f-f8c3af290f9f",
     "detail-type":"Inspector2 Scan",
     "source":"aws.inspector2",
     "account":"520666953574",
     "time":"2022-09-14T19:12:46Z",
     "region":"eu-central-1",
     "resources":[
        "arn:aws:ecr:eu-central-1:520666953574:repository/azure-agent"
     ],
     "detail":{
        "scan-status":"INITIAL_SCAN_COMPLETE",
        "repository-name":"arn:aws:ecr:eu-central-1:520666953574:repository/azure-agent",
        "finding-severity-counts":{
           "CRITICAL":0,
           "HIGH":1,
           "MEDIUM":6,
           "TOTAL":10
        },
        "image-digest":"sha256:734a4d019b381f591a63c819ae88b00eed5dba8b76626530c26497128a6c46d1",
        "image-tags":[
           "latest",
           "5715"
        ]
     }
  }
  ```

## Links

* [Image scanning](https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html)
