Table: aws_lightsail_container_services

This table shows data for Lightsail Container Services.

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

The primary key for this table is arn.

Relations

The following tables depend on aws_lightsail_container_services:

Columns

NameType
_cq_iduuid
_cq_parent_iduuid
account_idutf8
regionutf8
arn (PK)utf8
tagsjson
container_service_nameutf8
created_attimestamp[us, tz=UTC]
current_deploymentjson
is_disabledbool
locationjson
next_deploymentjson
powerutf8
power_idutf8
principal_arnutf8
private_domain_nameutf8
private_registry_accessjson
public_domain_namesjson
resource_typeutf8
scaleint64
stateutf8
state_detailjson
urlutf8

Example Queries

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

Unused Lightsail container services

WITH
  deployment
    AS (
      SELECT
        DISTINCT container_service_arn
      FROM
        aws_lightsail_container_service_deployments
    )
SELECT
  'Unused Lightsail container services' AS title,
  cs.account_id,
  cs.arn AS resource_id,
  'fail' AS status
FROM
  aws_lightsail_container_services AS cs
  LEFT JOIN deployment ON deployment.container_service_arn = cs.arn
WHERE
  deployment.container_service_arn IS NULL;