turbot/aws_compliance

Query: ecs_service_load_balancer_attached

Usage

powerpipe query aws_compliance.query.ecs_service_load_balancer_attached

Steampipe Tables

SQL

select
arn as resource,
case
when jsonb_array_length(load_balancers) = 0 then 'alarm'
else 'ok'
end as status,
case
when jsonb_array_length(load_balancers) = 0 then title || ' has no load balancer attached.'
else title || ' has ' || jsonb_array_length(load_balancers) || ' load balancer(s) attached.'
end as reason,
region,
account_id
from
aws_ecs_service;

Controls

The query is being used by the following controls: