In this rule, it is necessary to have a log metric filter and alarm set up for AWS Config configuration changes.
Rule | Ensure a log metric filter and alarm exist for AWS Config configuration changes |
Framework | cis_v150 |
Severity | ✔ Low |
Rule Description:
The rule ensures that a log metric filter and alarm are set up for AWS Config configuration changes, specifically for the CIS Benchmark version 1.5.0 (cis_v150). This is important for monitoring and alerting on any configuration changes made within your AWS environment.
Remediation:
To remediate this rule, follow the step-by-step guide below:
Step 1: Create a Log Metric Filter
"{($.eventName = CreateConfigRule || $.eventName = PutConfigRule || $.eventName = DeleteConfigRule) && $.aws:configRuleName = cis_v150}"
Step 2: Create an Alarm
Troubleshooting:
If you encounter any issues during the remediation process, consider the following troubleshooting steps:
Log group does not exist: Ensure that you have identified or created the correct log group that matches the resource you want to monitor. Double-check the log group name used in the filter pattern.
Incorrect filter pattern: Review the filter pattern used in the log metric filter. Ensure that the pattern matches the desired events (
CreateConfigRule
, PutConfigRule
, or DeleteConfigRule
) and includes the specific aws:configRuleName
set to cis_v150
.No matching log events: If the "Test pattern" section does not display any matching log events, verify that the correct events have been generated. Ensure that AWS Config is properly configured to capture the desired configuration change events.
Alarm configuration issues: Double-check the alarm thresholds, conditions, and actions. Ensure that you have configured them correctly to trigger the desired response.
If all troubleshooting steps fail, consider reviewing the AWS Config documentation, seeking guidance from AWS support, or consulting with an experienced AWS professional for further assistance.
Additional Information:
The creation of a log metric filter and alarm for monitoring AWS Config configuration changes related to CIS Benchmark version 1.5.0 (cis_v150) helps in maintaining compliance, security, and visibility over your AWS environment. This helps in early detection of any unauthorized or unexpected configuration changes, allowing you to take necessary actions promptly.