1 Answer
- Newest
- Most votes
- Most comments
0
Yes you can add multiple config rules with different resource types in a single EventBridge rule.
This configuration will trigger the EventBridge rule whenever any of the specified config rules detects a non-compliance event for either EC2 security groups or S3 buckets.
{
"source": [
"aws.config"
],
"detail-type": [
"Config Rules Compliance Change"
],
"detail": {
"messageType": [
"ComplianceChangeNotification"
],
"configRuleName": [
"ec2-security-group-attached-to-eni",
"s3-bucket-public-access-check"
],
"resourceType": [
"AWS::EC2::SecurityGroup",
"AWS::S3::Bucket"
],
"newEvaluationResult": {
"complianceType": [
"NON_COMPLIANT"
]
}
}
}
answered a month ago
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago