Control: Classic Load Balancers should have connection draining enabled
Description
This control checks whether Classic Load Balancers have connection draining enabled.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.ec2_classic_lb_connection_draining_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.ec2_classic_lb_connection_draining_enabled --share
SQL
This control uses a named query:
select arn as resource, case when connection_draining_enabled then 'ok' else 'alarm' end as status, case when connection_draining_enabled then title || ' connection draining enabled.' else title || ' connection draining disabled.' end as reason , region, account_idfrom aws_ec2_classic_load_balancer;