Do SQS diffs compare access policies?
Short version: no. Here is how to check them.

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
Notes - Queues-staging is account 300000000601 and queues-prod is account 300000000602; ARNs are compared by the name they end in.
Drift: 0 changed · 0 unmanaged · 0 missing (no drift) — 7 matchedExit code 0: no drift.
| Mark | Means |
|---|---|
~ |
both sides have it, but it differs |
! |
only the first side has it |
+ |
only the second side has it |
The policies themselves
Section titled “The policies themselves”$ kurkik sqs scan queues-staging --aclsqueues-staging - Amazon SQS, as arn:aws:iam::300000000601:rootqueues (1) orders-queue visibility 30s, retention 4d, sse policy allow Service sns.amazonaws.com sqs:SendMessage
$ kurkik sqs scan queues-prod --aclsqueues-prod - Amazon SQS, as arn:aws:iam::300000000602:rootqueues (1) orders-queue visibility 30s, retention 4d, sse policy allow * sqs:SendMessage open to anyoneOther ways to give a side
Section titled “Other ways to give a side”A document and a connection (exit 0)
$ kurkik sqs diff staging.yaml queues-prodstaging.yaml vs queues-prodAsyncAPI 3.0.0 · Amazon SQS queues-prod (us-east-1)
Drift: 0 changed · 0 unmanaged · 0 missing (no drift) — 2 matchedTwo documents (exit 0)
$ kurkik sqs diff staging.yaml prod.yamlstaging.yaml vs prod.yamlAsyncAPI 3.0.0
Drift: 0 changed · 0 unmanaged · 0 missing (no drift) — 1 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-queue: address: orders-queue bindings: sqs: bindingVersion: 0.2.0 queue: name: orders-queue fifoQueue: false deliveryDelay: 0 visibilityTimeout: 30 receiveMessageWaitTime: 0 messageRetentionPeriod: 345600 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: 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 x-sqs-attributes: MaximumMessageSize: 1048576 SqsManagedSseEnabled: trueoperations: {}How to build this setup yourself
queues-staging
awslocal sqs create-queue --queue-name orders-queueawslocal sqs set-queue-attributes --queue-url http://localhost:14566/300000000601/orders-queue --attributes '{"Policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Sid\": \"send\", \"Effect\": \"Allow\", \"Principal\": {\"Service\": \"sns.amazonaws.com\"}, \"Action\": \"sqs:SendMessage\", \"Resource\": \"arn:aws:sqs:us-east-1:300000000601:orders-queue\"}]}"}'queues-prod
awslocal sqs create-queue --queue-name orders-queueawslocal sqs set-queue-attributes --queue-url http://localhost:14566/300000000602/orders-queue --attributes '{"Policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Sid\": \"send\", \"Effect\": \"Allow\", \"Principal\": \"*\", \"Action\": \"sqs:SendMessage\", \"Resource\": \"arn:aws:sqs:us-east-1:300000000602:orders-queue\"}]}"}'All flags: kurkik sqs diff · more Amazon SQS diff examples
Copyright © 2026 Pavel Bodiachevskii