Compare SQS encryption settings
SSE-SQS against SSE-KMS.

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
Topic configuration ~ orders-queue KmsMasterKeyId — KmsMasterKeyId is set on queues-prod and left to AWS on queues-staging. (queues-staging: (not set), queues-prod: alias/aws/sqs) ~ payments-queue SqsManagedSseEnabled — SqsManagedSseEnabled differs. (queues-staging: true, queues-prod: false)
Notes - Queues-staging is account 300000000701 and queues-prod is account 300000000702; ARNs are compared by the name they end in.
Drift: 2 changed · 0 unmanaged · 0 missing (drift) — 13 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)
Topic configuration ~ payments-queue SqsManagedSseEnabled — SqsManagedSseEnabled differs. (document: true, broker: false)
Drift: 1 changed · 0 unmanaged · 0 missing (drift) — 3 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) — 2 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: true payments-queue: address: payments-queue bindings: sqs: bindingVersion: 0.2.0 queue: name: payments-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: KmsMasterKeyId: alias/aws/sqs MaximumMessageSize: 1048576 SqsManagedSseEnabled: true payments-queue: address: payments-queue bindings: sqs: bindingVersion: 0.2.0 queue: name: payments-queue fifoQueue: false deliveryDelay: 0 visibilityTimeout: 30 receiveMessageWaitTime: 0 messageRetentionPeriod: 345600 x-sqs-attributes: MaximumMessageSize: 1048576 SqsManagedSseEnabled: falseoperations: {}How to build this setup yourself
queues-staging
awslocal sqs create-queue --queue-name orders-queue --attributes '{"SqsManagedSseEnabled": "true"}'awslocal sqs create-queue --queue-name payments-queue --attributes '{"SqsManagedSseEnabled": "true"}'queues-prod
awslocal sqs create-queue --queue-name orders-queue --attributes '{"KmsMasterKeyId": "alias/aws/sqs", "KmsDataKeyReusePeriodSeconds": "300"}'awslocal sqs create-queue --queue-name payments-queue --attributes '{"SqsManagedSseEnabled": "false"}'All flags: kurkik sqs diff · more Amazon SQS diff examples
Copyright © 2026 Pavel Bodiachevskii