Skip to content

Generate AsyncAPI from SNS topics

Your topics as AsyncAPI 3.0.

Terminal recording of kurkik sns export

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

Terminal window
kurkik sns export topics-prod --stdout
asyncapi.yaml
asyncapi: 3.0.0
info:
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
x-sns-attributes:
DisplayName: Orders
payments:
address: payments
bindings:
sns:
bindingVersion: 0.1.0
name: payments
ordering:
type: standard
operations: {}

Download asyncapi.yaml

Exit code 3: the result is usable, but something was not read. Kurkik tells you what.

How to build this setup yourself

topics-prod

Terminal window
awslocal sns create-topic --name orders --attributes '{"DisplayName": "Orders"}'
awslocal sns create-topic --name payments

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