Skip to content

List SNS topics

The topics in one account and region.

Terminal recording of kurkik sns scan

The recording shows kurkik sns scan on the demo sandbox; its data differs from this example.

Terminal window
kurkik sns scan topics-prod
topics-prod - Amazon SNS, as arn:aws:iam::400000000701:root
topics (2)
orders
payments
subscriptions: not read (--consumers)
How to build this setup yourself

topics-prod

Terminal window
awslocal sqs create-queue --queue-name orders-queue
awslocal sqs create-queue --queue-name orders-dlq
awslocal sns create-topic --name orders
awslocal sns subscribe --topic-arn arn:aws:sns:us-east-1:400000000701:orders --protocol sqs --notification-endpoint arn:aws:sqs:us-east-1:400000000701:orders-queue --return-subscription-arn
awslocal sns set-subscription-attributes --subscription-arn arn:aws:sns:us-east-1:400000000701:orders:b572f306-db91-4694-bc62-aa567d96b082 --attribute-name RawMessageDelivery --attribute-value true
awslocal sns create-topic --name payments

All flags: kurkik sns scan · more Amazon SNS scan examples