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

The recording shows kurkik sns diff on the demo sandbox; its data differs from this example.
Command
Section titled “Command”kurkik sns diff topics-staging topics-prod --consumersOutput
Section titled “Output”topics-staging vs topics-prodAmazon SNS topics-prod
Notes - Topics-staging is account 300000001701 and topics-prod is account 300000001702; ARNs are compared by the name they end in.
Drift: 0 changed · 0 unmanaged · 0 missing (no drift) — 2 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 sns scan topics-staging --aclstopics-staging - Amazon SNS, as arn:aws:iam::300000001701:roottopics (1) orders policy allow Service events.amazonaws.com sns:Publishsubscriptions: not read (--consumers)
$ kurkik sns scan topics-prod --aclstopics-prod - Amazon SNS, as arn:aws:iam::300000001702:roottopics (1) orders policy allow * sns:Publish open to anyonesubscriptions: not read (--consumers)Other ways to give a side
Section titled “Other ways to give a side”A document and a connection (exit 0)
$ kurkik sns diff staging.yaml topics-prod --consumersstaging.yaml vs topics-prodAsyncAPI 3.0.0 · Amazon SNS topics-prod (us-east-1)
Drift: 0 changed · 0 unmanaged · 0 missing (no drift) — 2 matchedTwo documents (exit 0)
$ kurkik sns diff staging.yaml prod.yaml --consumersstaging.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: topics-staging Amazon SNS API version: 1.0.0-SNAPSHOT description: Generated by reading Amazon SNS of topics-staging (us-east-1).servers: sns: host: localhost:14566 protocol: amazon-sns description: Amazon SNS in us-east-1.channels: orders: address: orders bindings: sns: bindingVersion: 0.1.0 name: orders ordering: type: standardoperations: {}prod.yaml
asyncapi: 3.0.0info: title: topics-prod Amazon SNS API version: 1.0.0-SNAPSHOT description: Generated by reading Amazon SNS of topics-prod (us-east-1).servers: sns: host: localhost:14566 protocol: amazon-sns description: Amazon SNS in us-east-1.channels: orders: address: orders bindings: sns: bindingVersion: 0.1.0 name: orders ordering: type: standardoperations: {}How to build this setup yourself
topics-staging
awslocal sns create-topic --name ordersawslocal sns set-topic-attributes --topic-arn arn:aws:sns:us-east-1:300000001701:orders --attribute-name Policy --attribute-value '{"Version": "2012-10-17", "Statement": [{"Sid": "publish", "Effect": "Allow", "Principal": {"Service": "events.amazonaws.com"}, "Action": "sns:Publish", "Resource": "arn:aws:sns:us-east-1:300000001701:orders"}]}'topics-prod
awslocal sns create-topic --name ordersawslocal sns set-topic-attributes --topic-arn arn:aws:sns:us-east-1:300000001702:orders --attribute-name Policy --attribute-value '{"Version": "2012-10-17", "Statement": [{"Sid": "publish", "Effect": "Allow", "Principal": "*", "Action": "sns:Publish", "Resource": "arn:aws:sns:us-east-1:300000001702:orders"}]}'All flags: kurkik sns diff · more Amazon SNS diff examples
Copyright © 2026 Pavel Bodiachevskii