This rule ensures CloudWatch metrics are enabled for AWS WAF rules, providing insights into traffic patterns and potential security threats.
Rule | AWS WAF rules should have CloudWatch metrics enabled |
Framework | AWS Foundational Security Best Practices |
Severity | ✔ Medium |
Rule Description:
AWS WAF rules should have CloudWatch metrics enabled to monitor and track the performance and behavior of the web application firewall. Enabling CloudWatch metrics ensures visibility into the effectiveness of AWS WAF rules and helps in complying with AWS Foundational Security Best Practices.
Troubleshooting Steps:
If CloudWatch metrics are not enabled for AWS WAF rules, follow these steps:
Necessary Codes:
Below is the AWS CLI command to enable CloudWatch metrics for AWS WAF rules:
aws waf update-web-acl --web-acl-id <web-acl-id> --metric-name-sets "FULL" --region <region>
Step-by-Step Guide for Remediation:
By following the above steps and enabling CloudWatch metrics for AWS WAF rules, you ensure better monitoring and adherence to AWS Foundational Security Best Practices.