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 { 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
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-1.50.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22096f0e2bfea3025cccd645d9370bd90503306f52e95efe61a388e213317791 |
|
MD5 | 526fc87f680029ab1b5c48072b5fb297 |
|
BLAKE2b-256 | 6003bc2f1e0f16a01b4a8ea472f32ffd8dccca5dc5307a4faa84155b3eefa3b3 |
Close
Hashes for cloudcomponents.cdk_container_registry-1.50.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19197af4cb37f49fc0601df18d8e352287f1576d722656e27079e044de1e8f98 |
|
MD5 | b947985e8026b269c15cd776478adabc |
|
BLAKE2b-256 | 64c07114c2637f0ea39b63a27395e9045a9062661e6013c173c584f38e483cb9 |