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, analyticsReporting=None):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting)
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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0818d7046821fb18180a97668884d2d4cc04adab0c69ced97920cea353f92f62 |
|
MD5 | 5bcae91035fb3fdbe993a0844527b896 |
|
BLAKE2b-256 | 0f971c8c37fbaca981ed3b153f708139829f9af5f9a4106e1837862b28706f9b |
Close
Hashes for cloudcomponents.cdk_container_registry-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e59a399e1bd703ab0284e3da2ebbfc9204a27b66945b42eee7e1f156893961b |
|
MD5 | 4be954e2921c75c4eb0c967a8c0d9d32 |
|
BLAKE2b-256 | cd9133f841e659cee0b2fa852dfe6660e5e0e1bdbb2f83690911a240de1e6935 |