Skip to main content

Registry for container images

Project description

cloudcomponents Logo

@cloudcomponents/cdk-container-registry

Build Status cdkdx typescript python

Registry for container images

Install

TypeScript/JavaScript:

npm i @cloudcomponents/cdk-container-registry

Python:

pip install cloudcomponents.cdk-container-registry

How to use

import { Construct, Stack, StackProps } from '@aws-cdk/core';
import { Topic } from '@aws-cdk/aws-sns';
import { EmailSubscription } from '@aws-cdk/aws-sns-subscriptions';
import {
  ImageRepository,
  Severity,
} from '@cloudcomponents/cdk-container-registry';

export class ImageRepositoryStack extends Stack {
  constructor(scope: Construct, id: string, props?: StackProps) {
    super(scope, id, props);

    const alarmTopic = new Topic(this, 'Topic');

    alarmTopic.addSubscription(
      new EmailSubscription(process.env.DEVSECOPS_TEAM_EMAIL as string),
    );

    const imageRepository = new ImageRepository(this, 'ImageRepository', {
      forceDelete: true, //Only for tests
      imageScanOnPush: true,
    });

    imageRepository.onFinding('finding', {
      severity: Severity.HIGH,
      alarmTopic,
    });
  }
}

API Reference

See API.md.

Example

See more complete examples.

License

MIT

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

Built Distribution

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

File details

Details for the file cloudcomponents.cdk-container-registry-1.49.0.tar.gz.

File metadata

  • Download URL: cloudcomponents.cdk-container-registry-1.49.0.tar.gz
  • Upload date:
  • Size: 73.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for cloudcomponents.cdk-container-registry-1.49.0.tar.gz
Algorithm Hash digest
SHA256 0cc957df3d83c8edfc9a54f1e0b74f800df3e93374360abdc32c2ceabe86d28d
MD5 776058e33460ca4edc98faeba93042f1
BLAKE2b-256 be01644fb2a5a26bdc0179b2160b7c7b17767c96a53ec7ac6b725ed49e95b422

See more details on using hashes here.

File details

Details for the file cloudcomponents.cdk_container_registry-1.49.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cloudcomponents.cdk_container_registry-1.49.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f0b2618589d914325afc27fbb7f0f7d09950f8e5c6e3a7cb1f96cefa4998f5b
MD5 64e9d9373d901798c886ec47843f502d
BLAKE2b-256 380ece691c59506e84bebb217505e37e80ac344bb32361c8d3ab1dadc3d8c7db

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