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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11387bcaa713102b18ec4bc5fe1759dc392247e4babb0dfdd9fe5865a0fb16d0 |
|
MD5 | c51e80ff3024be6a4a81092d6e26a9ed |
|
BLAKE2b-256 | 06ff01b40ff39fc8d36f90be6d39d26806feefda725a945f845cc2cf622568ae |
Close
Hashes for cloudcomponents.cdk_container_registry-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5013c8555d3fd9213cf349be82873ae48b0cc043f2d26f71b50f7bc3287f0af8 |
|
MD5 | 35804262d6f04afc02681f8a128dad16 |
|
BLAKE2b-256 | 97d33bec5e28dd5dff70aa58c66b74d57c5ada8ea4b9a8b3382db0964021f40a |