Table: aws_sqs_queues

This table shows data for Sqs Queues.

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_GetQueueAttributes.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
policyjson
redrive_policyjson
redrive_allow_policyjson
tagsjson
urlutf8
approximate_number_of_messagesint64
approximate_number_of_messages_delayedint64
approximate_number_of_messages_not_visibleint64
created_timestampint64
delay_secondsint64
last_modified_timestampint64
maximum_message_sizeint64
message_retention_periodint64
receive_message_wait_time_secondsint64
visibility_timeoutint64
kms_master_key_idutf8
kms_data_key_reuse_period_secondsint64
sqs_managed_sse_enabledbool
fifo_queuebool
content_based_deduplicationbool
deduplication_scopeutf8
fifo_throughput_limitutf8
unknown_fieldsjson

Example Queries

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

Amazon SQS queues should be encrypted at rest

SELECT
  'Amazon SQS queues should be encrypted at rest' AS title,
  account_id,
  arn AS resource_id,
  CASE
  WHEN (kms_master_key_id IS NULL OR kms_master_key_id = '')
  AND sqs_managed_sse_enabled = false
  THEN 'fail'
  ELSE 'pass'
  END
    AS status
FROM
  aws_sqs_queues;