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
# Example automatically generated from non-compiling source. May contain errors.
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.48.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16e696522ae5e2b492a5f641914d52dc2950c8889559c8233ff7cac726718484 |
|
MD5 | 2b9faa07e9baf14332a2a2e657ad8e7e |
|
BLAKE2b-256 | 3b94d15dbfab1fcc6b0e969cdf5e5ff378d78e5fb6ea425acce84548297c859a |
Close
Hashes for cloudcomponents.cdk_container_registry-1.48.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7806d1dec09186c187a94cc907a118c9c2a5cdba95d5e6b12bdba8daf36d40d2 |
|
MD5 | 5277d4f67b5af39b23cf4f8647fab07b |
|
BLAKE2b-256 | 4667f1142ba7f5730e7e77052c37889e7648e5045305fe969226ed3bdcd73606 |