Table: aws_directconnect_lags

This table shows data for AWS Direct Connect Lags.

https://docs.aws.amazon.com/directconnect/latest/APIReference/API_Lag.html (opens in a new tab)

The primary key for this table is arn.

Columns

NameType
_cq_iduuid
_cq_parent_iduuid
account_idutf8
regionutf8
arn (PK)utf8
idutf8
tagsjson
allows_hosted_connectionsbool
aws_deviceutf8
aws_device_v2utf8
aws_logical_device_idutf8
connectionsjson
connections_bandwidthutf8
encryption_modeutf8
has_logical_redundancyutf8
jumbo_frame_capablebool
lag_idutf8
lag_nameutf8
lag_stateutf8
locationutf8
mac_sec_capablebool
mac_sec_keysjson
minimum_linksint64
number_of_connectionsint64
owner_accountutf8
provider_nameutf8

Example Queries

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

Direct Connect LAGs with no connections

SELECT
  'Direct Connect LAGs with no connections' AS title,
  account_id,
  arn AS resource_id,
  'fail' AS status
FROM
  aws_directconnect_lags
WHERE
  number_of_connections = 0 OR COALESCE(jsonb_array_length(connections), 0) = 0;