Table: aws_lightsail_load_balancers

This table shows data for Lightsail Load Balancers.

https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_LoadBalancer.html (opens in a new tab)

The primary key for this table is arn.

Relations

The following tables depend on aws_lightsail_load_balancers:

Columns

NameType
_cq_iduuid
_cq_parent_iduuid
account_idutf8
regionutf8
arn (PK)utf8
tagsjson
configuration_optionsjson
created_attimestamp[us, tz=UTC]
dns_nameutf8
health_check_pathutf8
https_redirection_enabledbool
instance_health_summaryjson
instance_portint64
ip_address_typeutf8
locationjson
nameutf8
protocolutf8
public_portslist<item: int64, nullable>
resource_typeutf8
stateutf8
support_codeutf8
tls_certificate_summariesjson
tls_policy_nameutf8

Example Queries

These SQL queries are sampled from CloudQuery policies and are compatible with PostgreSQL.

Unused Lightsail load balancers

SELECT
  'Unused Lightsail load balancers' AS title,
  account_id,
  arn AS resource_id,
  'fail' AS status
FROM
  aws_lightsail_load_balancers
WHERE
  COALESCE(jsonb_array_length(instance_health_summary), 0) = 0;