turbot/terraform_aws_compliance

Query: elb_lb_target_group_use_health_check

Usage

powerpipe query terraform_aws_compliance.query.elb_lb_target_group_use_health_check

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'protocol') like any (array ['HTTPS', 'HTTP']) and (attributes_std ->> 'health_check') is not null then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'protocol') like any (array ['HTTPS', 'HTTP']) and (attributes_std ->> 'health_check') is not null then ' target group configured with health check'
else ' target group not configured with health check'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type in ('aws_lb_target_group', 'aws_alb_target_group');

Controls

The query is being used by the following controls: