InventoryMonitorRule
Rule that is added to the MCDInventoryRole to put all CloudTrail inventory changes to EC2 and API gateways to be copied to the event bus on the AWS account where the Multicloud Defense Controller runs. The rule is required to match on specific event patterns that occur in the customer's AWS account. Once a match occurs, the rule states that the matched event should be sent to the webhook server (API based destination) of the controller. This rule is executed using the Multicloud DefenseMCDInventoryRole created in the previous section.
Custom Event Pattern:
{
"detail-type": [
"AWS API Call via CloudTrail",
"EC2 Instance State-change Notification"
],
"source": [
"aws.ec2",
"aws.elasticloadbalancing",
"aws.apigateway"
]
}
Target:
Event Bus in another AWS Account (mcd-account) using the MCDInventoryRole