Table: aws_config_configuration_recorders

This table shows data for Config Configuration Recorders.

https://docs.aws.amazon.com/config/latest/APIReference/API_ConfigurationRecorder.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
nameutf8
recording_groupjson
role_arnutf8
status_last_error_codeutf8
status_last_error_messageutf8
status_last_start_timetimestamp[us, tz=UTC]
status_last_statusutf8
status_last_status_change_timetimestamp[us, tz=UTC]
status_last_stop_timetimestamp[us, tz=UTC]
status_recordingbool

Example Queries

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

AWS Config should be enabled

SELECT
  'AWS Config should be enabled' AS title,
  account_id,
  arn AS resource_id,
  CASE
  WHEN (recording_group->>'IncludeGlobalResourceTypes')::BOOL IS NOT true
  OR (recording_group->>'AllSupported')::BOOL IS NOT true
  OR status_recording IS NOT true
  OR status_last_status IS DISTINCT FROM 'SUCCESS'
  THEN 'fail'
  ELSE 'pass'
  END
    AS status
FROM
  aws_config_configuration_recorders;