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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceacbf6d6fef8de7b69a8c4040b47d6c32dda69ad5ed03947ce90cec1c1322fc |
|
MD5 | ed7b87912700d5dcccdfbd43223b5278 |
|
BLAKE2b-256 | 037818a1e2c7e03aac54a2e12dec0a10e9dfb69217efa371aa1d61a2f28c60be |
Close
Hashes for cloudcomponents.cdk_container_registry-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a4fab4d37182e513c3a9872693a825742ea7ff141fc43119c5ad5434fc9f340 |
|
MD5 | 383c83bef06cf202a0f3de0288943c7a |
|
BLAKE2b-256 | c415bb6179985c1628443d177f127ef8e14b8e41b5ebb3ae06f94b19720cd6ef |