Table: aws_lightsail_disks

This table shows data for Lightsail Disks.

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

The primary key for this table is arn.

Relations

The following tables depend on aws_lightsail_disks:

Columns

NameType
_cq_iduuid
_cq_parent_iduuid
account_idutf8
regionutf8
arn (PK)utf8
tagsjson
add_onsjson
attached_toutf8
attachment_stateutf8
auto_mount_statusutf8
created_attimestamp[us, tz=UTC]
gb_in_useint64
iopsint64
is_attachedbool
is_system_diskbool
locationjson
nameutf8
pathutf8
resource_typeutf8
size_in_gbint64
stateutf8
support_codeutf8

Example Queries

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

Unused Lightsail disks

SELECT
  'Unused Lightsail disks' AS title,
  account_id,
  arn AS resource_id,
  'fail' AS status
FROM
  aws_lightsail_disks
WHERE
  is_attached = false;