turbot/aws_thrifty

GitHub

Query: ec2_classic_lb_unused

Usage

steampipe query aws_thrifty.query.ec2_classic_lb_unused

SQL

select
arn as resource,
case
when instances is null then 'alarm'
else 'ok'
end as status,
case
when instances is null then title || ' has no instances registered.'
else title || ' has registered instances.'
end as reason,
region,
account_id
from
aws_ec2_classic_load_balancer;

Controls

The query is being used by the following controls: