Compare SQS queues between staging and prod
It works on staging. Are the queues on prod set up the same way?

The recording shows kurkik sqs diff on the demo sandbox; its data differs from this example.
Command
Section titled “Command”kurkik sqs diff queues-staging queues-prodOutput
Section titled “Output”queues-staging vs queues-prodAmazon SQS queues-prod
Channels + audit-queue address — Queue audit-queue is not on queues-staging. (queues-prod: audit-queue)
Channel bindings ~ orders-queue visibilityTimeout — visibilityTimeout differs. (queues-staging: 30, queues-prod: 60) ~ orders-queue redrivePolicy.maxReceiveCount — redrivePolicy.maxReceiveCount differs. (queues-staging: 5, queues-prod: 3)
Notes - Queues-staging is account 111111111111 and queues-prod is account 222222222222; ARNs are compared by the name they end in.
Drift: 2 changed · 1 unmanaged · 0 missing (drift) — 25 matchedExit code 2: drift found, so a CI job can stop here.
| Mark | Means |
|---|---|
~ |
both sides have it, but it differs |
! |
only the first side has it |
+ |
only the second side has it |
Other ways to give a side
Section titled “Other ways to give a side”A document and a connection (exit 2)
$ kurkik sqs diff staging.yaml queues-prodstaging.yaml vs queues-prodAsyncAPI 3.0.0 · Amazon SQS queues-prod (us-east-1)
Channels + audit-queue address — Queue audit-queue exists but no channel in the document describes it. (broker: audit-queue)
Channel bindings ~ orders-queue visibilityTimeout — visibilityTimeout differs. (document: 30, broker: 60) ~ orders-queue redrivePolicy.maxReceiveCount — maxReceiveCount differs. (document: 5, broker: 3)
Drift: 2 changed · 1 unmanaged · 0 missing (drift) — 4 matchedTwo documents (exit 0)
$ kurkik sqs diff staging.yaml prod.yamlstaging.yaml vs prod.yamlAsyncAPI 3.0.0
Channels + audit-queue address — audit-queue is in prod.yaml and not in staging.yaml. (prod.yaml: audit-queue)
Drift: 0 changed · 1 unmanaged · 0 missing (no drift) — 3 matchedDownload the JSON report (-o json)
The documents compared
Section titled “The documents compared”staging.yaml
asyncapi: 3.0.0info: title: queues-staging Amazon SQS API version: 1.0.0-SNAPSHOT description: Generated by reading Amazon SQS of queues-staging (us-east-1).servers: sqs: host: localhost:14566 protocol: amazon-sqs description: Amazon SQS in us-east-1.channels: orders-dlq: address: orders-dlq bindings: sqs: bindingVersion: 0.2.0 queue: name: orders-dlq fifoQueue: false deliveryDelay: 0 visibilityTimeout: 30 receiveMessageWaitTime: 0 messageRetentionPeriod: 345600 x-sqs-attributes: MaximumMessageSize: 1048576 SqsManagedSseEnabled: true orders-events.fifo: address: orders-events.fifo bindings: sqs: bindingVersion: 0.2.0 queue: name: orders-events.fifo fifoQueue: true deduplicationScope: queue fifoThroughputLimit: perQueue deliveryDelay: 0 visibilityTimeout: 30 receiveMessageWaitTime: 0 messageRetentionPeriod: 345600 x-sqs-attributes: ContentBasedDeduplication: false KmsMasterKeyId: alias/aws/sqs MaximumMessageSize: 1048576 SqsManagedSseEnabled: true orders-queue: address: orders-queue bindings: sqs: bindingVersion: 0.2.0 queue: name: orders-queue fifoQueue: false deliveryDelay: 0 visibilityTimeout: 30 receiveMessageWaitTime: 0 messageRetentionPeriod: 345600 redrivePolicy: deadLetterQueue: name: orders-dlq maxReceiveCount: 5 x-sqs-attributes: MaximumMessageSize: 1048576 SqsManagedSseEnabled: trueoperations: {}prod.yaml
asyncapi: 3.0.0info: title: queues-prod Amazon SQS API version: 1.0.0-SNAPSHOT description: Generated by reading Amazon SQS of queues-prod (us-east-1).servers: sqs: host: localhost:14566 protocol: amazon-sqs description: Amazon SQS in us-east-1.channels: audit-queue: address: audit-queue bindings: sqs: bindingVersion: 0.2.0 queue: name: audit-queue fifoQueue: false deliveryDelay: 0 visibilityTimeout: 30 receiveMessageWaitTime: 0 messageRetentionPeriod: 345600 x-sqs-attributes: MaximumMessageSize: 1048576 SqsManagedSseEnabled: true orders-dlq: address: orders-dlq bindings: sqs: bindingVersion: 0.2.0 queue: name: orders-dlq fifoQueue: false deliveryDelay: 0 visibilityTimeout: 30 receiveMessageWaitTime: 0 messageRetentionPeriod: 345600 x-sqs-attributes: MaximumMessageSize: 1048576 SqsManagedSseEnabled: true orders-events.fifo: address: orders-events.fifo bindings: sqs: bindingVersion: 0.2.0 queue: name: orders-events.fifo fifoQueue: true deduplicationScope: queue fifoThroughputLimit: perQueue deliveryDelay: 0 visibilityTimeout: 30 receiveMessageWaitTime: 0 messageRetentionPeriod: 345600 x-sqs-attributes: ContentBasedDeduplication: false KmsMasterKeyId: alias/aws/sqs MaximumMessageSize: 1048576 SqsManagedSseEnabled: true orders-queue: address: orders-queue bindings: sqs: bindingVersion: 0.2.0 queue: name: orders-queue fifoQueue: false deliveryDelay: 0 visibilityTimeout: 60 receiveMessageWaitTime: 0 messageRetentionPeriod: 345600 redrivePolicy: deadLetterQueue: name: orders-dlq maxReceiveCount: 3 x-sqs-attributes: MaximumMessageSize: 1048576 SqsManagedSseEnabled: trueoperations: {}All flags: kurkik sqs diff · more Amazon SQS diff examples
Copyright © 2026 Pavel Bodiachevskii