turbot/terraform_aws_compliance

Query: elb_classic_lb_use_tls_https_listeners

Usage

powerpipe query terraform_aws_compliance.query.elb_classic_lb_use_tls_https_listeners

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'listener' ->> 'lb_protocol') like any (array [ 'HTTPS', 'TLS' ]) then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'listener' ->> 'lb_protocol') like any (array [ 'HTTPS', 'TLS' ]) then ' configured with ' || (attributes_std -> 'listener' ->> 'lb_protocol') || ' protocol'
else ' not configured with HTTPS or TLS protocol'
end || '.' reason,
path || ':' || start_line
from
terraform_resource
where
type = 'aws_elb';

Controls

The query is being used by the following controls: