Skip to content

Export an SQS FIFO queue to AsyncAPI

FIFO settings in the document.

Terminal recording of kurkik sqs export

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

Terminal window
kurkik sqs export queues-prod --stdout
asyncapi.yaml
asyncapi: 3.0.0
info:
title: queues-prod Amazon SQS API
version: 1.0.0-SNAPSHOT
description: Generated by reading Amazon SQS of queues-prod (us-east-1).
servers:
sqs:
host: localhost:14566
protocol: amazon-sqs
description: Amazon SQS in us-east-1.
channels:
orders.fifo:
address: orders.fifo
bindings:
sqs:
bindingVersion: 0.2.0
queue:
name: orders.fifo
fifoQueue: true
deduplicationScope: queue
fifoThroughputLimit: perQueue
deliveryDelay: 0
visibilityTimeout: 30
receiveMessageWaitTime: 0
messageRetentionPeriod: 345600
x-sqs-attributes:
ContentBasedDeduplication: true
MaximumMessageSize: 1048576
SqsManagedSseEnabled: true
operations: {}

Download asyncapi.yaml

How to build this setup yourself

queues-prod

Terminal window
awslocal sqs create-queue --queue-name orders.fifo --attributes '{"FifoQueue": "true", "ContentBasedDeduplication": "true"}'

All flags: kurkik sqs export · more Amazon SQS export examples