Control: ELB application load balancers should have Web Application Firewall (WAF) enabled
Description
Ensure AWS WAF is enabled on application load balancers to help protect web applications.
Usage
Run the control in your terminal:
powerpipe control run aws_perimeter.control.elb_application_lb_waf_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_perimeter.control.elb_application_lb_waf_enabled --share
Steampipe Tables
SQL
with associated_resource as ( select arns from aws_wafv2_web_acl, jsonb_array_elements_text(associated_resources) as arns )select arn as resource, case when ar.arns is not null then 'ok' else 'alarm' end as status, case when ar.arns is not null then title || ' WAF enabled.' else title || ' WAF disabled.' end as reason , region, account_idfrom aws_ec2_application_load_balancer as lb left join associated_resource as ar on lb.arn = ar.arns;