turbot/steampipe-mod-terraform-aws-compliance

Control: ELB classic load balancers should have defensive or strictest desync mitigation mode configured

Description

Ensure that your classic load balancers (ELBs) are configured with defensive or strictest desync mitigation mode.

Usage

Run the control in your terminal:

powerpipe control run terraform_aws_compliance.control.elb_classic_lb_use_desync_mitigation_mode

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run terraform_aws_compliance.control.elb_classic_lb_use_desync_mitigation_mode --share

SQL

This control uses a named query:

select
address as resource,
case
when (attributes_std ->> 'desync_mitigation_mode') like any (array ['defensive', 'strictest']) then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'desync_mitigation_mode') like any (array ['defensive', 'strictest']) then ' configured with ' || (attributes_std ->> 'desync_mitigation_mode') || ' mitigation mode'
else ' not configured with defensive or strictest desync mitigation mode'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_elb';

Tags