WAFv2 web ACL rule should have CloudWatch metrics enabled
What it checks
WAFv2 web ACL: at least one rule has CloudWatch metrics disabled.
Where it applies
Terraform: aws_wafv2_web_acl, aws_wafv2_rule_group
CloudFormation: AWS::WAFv2::WebACL, AWS::WAFv2::RuleGroup
How to fix it
- Set cloudwatch_metrics_enabled = true and sampled_requests_enabled = true in the visibility_config of every rule
Frameworks
- AWS FSBP WAF.12
- SOC 2 CC7.2
These mappings are advisory, not an attestation of compliance.