turbot/aws_compliance

Query: elb_application_lb_waf_enabled

Usage

powerpipe query aws_compliance.query.elb_application_lb_waf_enabled

SQL

select
arn as resource,
case
when load_balancer_attributes @> '[{"Key":"waf.fail_open.enabled","Value":"true"}]' then 'ok'
else 'alarm'
end as status,
case
when load_balancer_attributes @> '[{"Key":"waf.fail_open.enabled","Value":"true"}]' then title || ' WAF enabled.'
else title || ' WAF disabled.'
end as reason,
region,
account_id
from
aws_ec2_application_load_balancer;

Controls

The query is being used by the following controls: