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.25.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8548eefe79eab74b440f0ea1cfb4276b4890b45eb45652569ec29a1fafb225c6 |
|
MD5 | 4dcf1850c87e3f53597e5ca8e99a80ab |
|
BLAKE2b-256 | 247795ccead0987635165ce084462635854f6448a9cebd1d2d86cc74c0a1a393 |
Close
Hashes for cloudcomponents.cdk_container_registry-1.0.25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fedf6515896b1fa14787647c3659e260d90484e57b9a486d5403cd0beca98bf9 |
|
MD5 | d5694b5338c188a5aca7ab422704a1e9 |
|
BLAKE2b-256 | 17d8ff75bc484d1ee199c90407864e0243eab4988c2c6d9aaca4bae319abd0d7 |