turbot/aws_compliance

Query: waf_regional_rule_group_rule_attached

Usage

powerpipe query aws_compliance.query.waf_regional_rule_group_rule_attached

SQL

select
arn as resource,
case
when activated_rules is null or jsonb_array_length(activated_rules) = 0 then 'alarm'
else 'ok'
end as status,
case
when activated_rules is null or jsonb_array_length(activated_rules) = 0 then title || ' has no attached rules.'
else title || ' has ' || jsonb_array_length(activated_rules) || ' rule(s) attached.'
end as reason
, region, account_id
from
aws_wafregional_rule_group;

Controls

The query is being used by the following controls: