Skip to main content

Notifies on new AWS ECR scan results

Project description

CDK ECR Scan Notifier

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

Sample Events

  • ECR Basic Scan

    {
       "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

    {
       "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

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

ecr_scan_notifier-0.0.83.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

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

ecr_scan_notifier-0.0.83-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file ecr_scan_notifier-0.0.83.tar.gz.

File metadata

  • Download URL: ecr_scan_notifier-0.0.83.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for ecr_scan_notifier-0.0.83.tar.gz
Algorithm Hash digest
SHA256 ae7a7c0f35b3d7d376d7bca952a6d329ad4e3b47bbfca6103db8fb315f58bebc
MD5 6a9ff2ec94d583e7399c5a1f07dc53e3
BLAKE2b-256 ebd29833d34a1e4fe2c100ef87ad450d867294aacb62f40d1c9cf131b194f7d8

See more details on using hashes here.

File details

Details for the file ecr_scan_notifier-0.0.83-py3-none-any.whl.

File metadata

File hashes

Hashes for ecr_scan_notifier-0.0.83-py3-none-any.whl
Algorithm Hash digest
SHA256 a6355047d5d8498e27eaaa322c3e00bf256d2b9907d6f53c9bb09a33be712144
MD5 3b8bf35962af7e1c6f3c396cac1b2b51
BLAKE2b-256 438ad0880b5227c2c656a2a2d51e69106f2fd766da5824f017501d62fcec5d7b

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