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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ee4f22e2318c142e3d9e13dec2351801c469b2a725f2704cd84a5182cc23ef0 |
|
MD5 | cf2319f11a2808358fb3dea193514395 |
|
BLAKE2b-256 | 525bc49e2d61334110f709a36e0bf8e88cf86eab423622b0f30d774e716c3ad0 |
Close
Hashes for cloudcomponents.cdk_container_registry-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 781703f8bc9d18977e63f3364e741cb3b19d9664f03c9ddfd7d73ebb55350ad1 |
|
MD5 | e4a4ef9c623327a007b6aa34a8bd2f09 |
|
BLAKE2b-256 | 8c41978c3dc199df38936c392f39e2815f997d88a7ed98736de8cf8900244b88 |