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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a64f69a3a06aed84949fc3d9b9131d412610254772ff2b3ee01433e3882197c1 |
|
MD5 | 18c9e434af6bcc2a9b4c8e2635f7f3ff |
|
BLAKE2b-256 | 2e411f55cb3e78044f7c628617606e08ce496c13d2ec1c58ef947cb878aad97f |
Close
Hashes for cloudcomponents.cdk_container_registry-2.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6075c0f6783da209df79fb1619a3179f64296948f2cc12aa8a4dc55c54c0e322 |
|
MD5 | 0db0dd1fce4fc0734a668db324c7aef7 |
|
BLAKE2b-256 | ac3bbfe72e78870907a50d110ebdf7e44e9fd3babbdd6585eefd9bae1156ba78 |