2.0.0 • Published 4 years ago
@simple-cdk-constructs/ecr-scan-monitor v2.0.0
@simple-cdk-constructs/ecr-scan-monitor
CDK Construct to handle any ECR image scans which detect a vulnerability. Any ITarget can be provided so events can be sent to multiple sources including SNS Topics or Lambda Functions.
Use Case
Anywhere that it is important to monitor vulnerabilities in stored ECR images.
Installation
npm i @simple-cdk-constructs/ecr-scan-monitor
Usage
import { Topic } from '@aws-cdk/aws-sns';
import { SnsTopic } from '@aws-cdk/aws-events-targets';
import { ECRScanMonitor } from '@simple-cdk-constructs/ecr-scan-monitor';
// ...
let snsTopic = new Topic(this, 'notiification-topic', {
topicName: 'ecr-image-vulnerability'
});
new ECRScanMonitor(this, 'scan-monitor', {
target: new SnsTopic(snsTopic)
});
// ...