Table: aws_lightsail_instances

This table shows data for Lightsail Instances.

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

The primary key for this table is arn.

Relations

The following tables depend on aws_lightsail_instances:

Columns

NameType
_cq_iduuid
_cq_parent_iduuid
account_idutf8
regionutf8
access_detailsjson
arn (PK)utf8
tagsjson
add_onsjson
blueprint_idutf8
blueprint_nameutf8
bundle_idutf8
created_attimestamp[us, tz=UTC]
hardwarejson
ip_address_typeutf8
ipv6_addresseslist<item: utf8, nullable>
is_static_ipbool
locationjson
metadata_optionsjson
nameutf8
networkingjson
private_ip_addressutf8
public_ip_addressutf8
resource_typeutf8
ssh_key_nameutf8
statejson
support_codeutf8
usernameutf8

Example Queries

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

Lightsail instances should use IMDSv2

SELECT
  'Lightsail instances should use IMDSv2' AS title,
  account_id,
  arn AS resource_id,
  CASE
  WHEN metadata_options->>'HttpTokens' IS DISTINCT FROM 'required' THEN 'fail'
  ELSE 'pass'
  END
    AS status
FROM
  aws_lightsail_instances;