Skip to content

Export an SNS FIFO topic to AsyncAPI

FIFO settings in the document.

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.fifo:
address: orders.fifo
bindings:
sns:
bindingVersion: 0.1.0
name: orders.fifo
ordering:
type: FIFO
contentBasedDeduplication: true
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.fifo --attributes '{"FifoTopic": "true", "ContentBasedDeduplication": "true"}'

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