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 without compilation. See https://github.com/aws/jsii/issues/826
from aws_cdk.core import Construct, Stack, StackProps
from aws_cdk.aws_sns import Topic
from aws_cdk.aws_sns_subscriptions import EmailSubscription
from cloudcomponents.cdk_container_registry import ImageRepository, Severity
class ImageRepositoryStack(Stack):
def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, synthesizer=None, terminationProtection=None):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection)
alarm_topic = Topic(self, "Topic")
alarm_topic.add_subscription(
EmailSubscription(process.env.DEVSECOPS_TEAM_EMAIL))
image_repository = ImageRepository(self, "ImageRepository", {
"force_delete": True, # Only for tests
"image_scan_on_push": True
})
image_repository.on_finding("finding",
severity=Severity.HIGH,
alarm_topic=alarm_topic
)
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.0.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc8bdd04149789b439e854989ee359292e14706506690b472edea129ef5f2c5f |
|
MD5 | 549a56530912309a5f06cd5c0f2a729e |
|
BLAKE2b-256 | 05d9a3cd4f619b09bf7b2e727276ac313218763878a11d704d01d83cd4513c3b |
Close
Hashes for cloudcomponents.cdk_container_registry-1.0.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b317986b11aad7f3a934ed6b5c0a1530c01afc049d79c6d7fa4b69326775b587 |
|
MD5 | 83782cbd53e6b5a6b1635d3b49ed2b11 |
|
BLAKE2b-256 | 5696573ae37f1b6774542b83cd4bcbfd97f97275e5724869872b9b9179f1e1cb |