Registry for container images
Project description
@cloudcomponents/cdk-container-registry
Registry for container images
Install
TypeScript/JavaScript:
npm i @cloudcomponents/cdk-container-registry
Python:
pip install cloudcomponents.cdk-container-registry
How to use
import { ImageRepository, Severity } from '@cloudcomponents/cdk-container-registry';
import { Stack, StackProps } from 'aws-cdk-lib';
import { Topic } from 'aws-cdk-lib/aws-sns';
import { EmailSubscription } from 'aws-cdk-lib/aws-sns-subscriptions';
import { Construct } from 'constructs';
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
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
Close
Hashes for cloudcomponents.cdk-container-registry-2.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b66fa1469b06a99de34da3b05579eef0e4d1f34040d47577c80e330e43f57f7e |
|
MD5 | 9bc0eb347b01781e3ebe4916bcb60270 |
|
BLAKE2b-256 | cb44b4c045989a45dc9e510fc85ec5d0b2ad414c483d829c8216c07d14f49582 |
Close
Hashes for cloudcomponents.cdk_container_registry-2.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae2b1b1d3452f614e71f5506b173dc5a59c416c8b01ae5a05a2e4f0921d2c720 |
|
MD5 | 25dc2f1026fa9a774d470f8279b2defe |
|
BLAKE2b-256 | 9c9251cd9ecf39e2fc671638c7523dae99fb47f347e30eb0d43277786e5da3d2 |