Export SNS subscriptions to AsyncAPI
Add --consumers to write down the subscriptions too.

The recording shows kurkik sns export on the demo sandbox; its data differs from this example.
Command
Section titled “Command”kurkik sns export topics-prod --consumers --stdoutThe AsyncAPI document
Section titled “The AsyncAPI document”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: standard payments: address: payments bindings: sns: bindingVersion: 0.1.0 name: payments ordering: type: standardoperations: receive_from_orders: action: receive channel: $ref: "#/channels/orders" description: Subscriptions of orders when this document was generated. bindings: sns: bindingVersion: 0.1.0 consumers: - protocol: sqs endpoint: arn: arn:aws:sqs:us-east-1:400000001101:orders-queue rawMessageDelivery: trueHow to build this setup yourself
topics-prod
awslocal sqs create-queue --queue-name orders-queueawslocal sqs create-queue --queue-name orders-dlqawslocal sns create-topic --name ordersawslocal sns subscribe --topic-arn arn:aws:sns:us-east-1:400000001101:orders --protocol sqs --notification-endpoint arn:aws:sqs:us-east-1:400000001101:orders-queue --return-subscription-arnawslocal sns set-subscription-attributes --subscription-arn arn:aws:sns:us-east-1:400000001101:orders:ba716bb8-4359-4b53-8cc2-be6107878020 --attribute-name RawMessageDelivery --attribute-value trueawslocal sns create-topic --name paymentsAll flags: kurkik sns export · more Amazon SNS export examples
Copyright © 2026 Pavel Bodiachevskii