ARNscopeDocs

Amazon SQS

Last updated 1 December 2026

Use case: SQS dead-letter queues

SQS lists the queues of a profile and region with their depth, and opens one to show how many messages are waiting, how long the oldest has waited, which queues and Lambda functions it is connected to and, when you ask, what the messages say. It is for the moment a queue is growing or a dead-letter queue has filled: see why the messages failed, fix the consumer, then move them back.

Reading the queue’s figures is free of side effects. Reading its messages is not, because SQS has no way to read a message without receiving it, so ARNscope tells you what a receive does before the first one. Changing anything (redrive, send, delete, purge) needs Writes on and a native confirmation.

90 seconds, narrated, with captions: a dead-letter queue with 2,136 messages at 2am, its source and Lambda consumer, a peek at what failed, then a redrive back to the source behind Writes and the production confirmation, followed to an empty queue. Sample data.

Queues

Open SQS, choose the profile and region, and the queues load. Each row shows its name and, once the depth arrives, a badge with the number of messages available. Names ending in .fifo get a FIFO chip.

Dead-letter queues get a DLQ chip and a red depth badge. ARNscope knows which queues they are from the queues’ own settings: the depth read for the list also reads each queue’s redrive policy, and any queue another queue names as its dead-letter target is a dead-letter queue, whatever it is called. Until those reads arrive, a name containing dlq or dead-letter as a word stands in.

Filter queues narrows the list by name. Drag a queue onto a side of the page, or ⌘-click it, to open it beside the current one; see Tabs, split panes and sessions.

Select a queue to open it. The title copies the queue name; right-click it for the URL or the ARN. A dead-letter queue shows a Dead-letter queue chip next to the title. A queue that is only named like one, with no redrive policy seen to point at it, shows DLQ by name instead.

The order-events-dlq dead-letter queue open in ARNscope: 23 messages available awaiting redrive, the oldest message’s age from CloudWatch, “Dead-letter queue for order-events” linking back to the source queue, and the Redrive, Send message and Purge buttons beside the Writes switch.

Four tiles show the queue’s state:

Tile Meaning
Available Ready for consumers. On a dead-letter queue it says “Awaiting redrive” and turns red when it is not zero.
In flight Received by a consumer and not yet deleted.
Delayed Not visible yet.
Oldest message How long the oldest message has waited: CloudWatch’s ApproximateAgeOfOldestMessage, the newest point of the last 30 minutes. It turns amber at an hour or more.

The counts are approximate, as SQS gives them. Under the tiles a strip shows the Visibility timeout and Retention period, then what the queue is connected to, read once when you open it:

If your role cannot read one of these, the strip says “Not readable with this profile”, with the reason on hover, and the rest of the page works.

Refresh queue re-reads the depth and settings, the oldest message’s age and, on a dead-letter queue, its redrives. It can also re-read on an interval, but auto-refresh covers only the depth and settings: one cheap call that never touches a message. ARNscope never receives messages by itself.

Peek and receive

Two buttons read messages:

The fields are Max (1 to 10 messages), Visibility (0 to 43,200 seconds) and Wait (0 to 20 seconds, long polling). Visibility and wait apply to Receive only. On a dead-letter queue, the empty message list suggests a peek to see why the messages failed: body, attributes and receive count.

What the first receive on a queue tells you

The first time you peek or receive on a queue, a bar asks you to confirm:

Confirming is a one-time acknowledgement for that queue. It is separate from the Writes switch: reading a queue does not need Writes on, and turning Writes on does not skip this bar. Selecting another queue, or refreshing the queue list, asks again. A receive that cannot be confirmed (for example a dropped connection) says the queue may have delivered messages and to check its state before trying again.

Messages

Fetched messages appear in a list with a body preview (marked JSON or TEXT), the time sent and the receive count. A count above 1 is shown in amber, since it means the message has been received before. ARNscope keeps the newest 100 in memory, shows how many, and forgets them when you leave the queue or press Clear. Search fetched messages looks only at what is already fetched.

Select a message for its details on the right:

Two buttons in the message’s header change the queue: Send a copy of this message… and Delete this message… (see below).

SQS may return fewer messages than you asked for, and a later receive may return the same one again. Both are normal.

Change the queue

The bar under the figures holds the queue’s writes: Redrive… (on dead-letter queues only), Send message… and Purge…, with the Writes switch at its right. Each opens a dialog that shows what will happen, then a review, then Writes’ native confirmation, which names the profile and region and says PRODUCTION when the profile is one.

With Writes off you can still fill in and review the change; the dialog says “Writes are off for profile · region” and won’t apply it until you turn them on. ARNscope’s Rust backend refuses an SQS write while Writes is off for the profile and the queue’s region, whatever the page sends. Each write is sent once, without automatic retries, and is recorded in the activity log with the queue and the message ID or count; message bodies and receipt handles are never logged.

Redrive a dead-letter queue

The Redrives section of email-outbox-dlq: a running redrive back to the source queues at 2 messages a second, 98 of 410 moved, with its Cancel button, and an earlier cancelled redrive to email-outbox-replay. Redrive is disabled while one runs.

Redrive… starts an SQS message move task, which moves the dead-letter queue’s messages in the background. Choose:

The confirmation says how many messages wait, where they go and at what rate. SQS runs one redrive per dead-letter queue at a time, so Redrive… is disabled while one runs.

A dead-letter queue shows a Redrives section: the running task (or the latest finished one) with its status (Running, Completed, Cancelling, Cancelled or Failed), a meter of messages moved out of the total, the destination, the rate limit and when it started, and a count of earlier redrives in the last 14 days. After you start a redrive, the page follows it, re-reading the task and the depth every 5 seconds for up to two minutes, only while the page is shown; after that, use Refresh redrives. Cancel… stops a running task, after its own confirmation. Messages already moved stay where they went; the rest stay in the dead-letter queue.

Redrive moves the messages exactly as they are. Fix the consumer first, or the messages fail again and come back.

Send or replay a message

Send message… sends one message to the queue. Send a copy of this message… on a fetched message opens the same dialog filled with that message’s body, attributes and, on FIFO queues, its group ID, so you can replay it, edited if the consumer needs a fixed version. The original stays where it is.

The dialog has the body (an editor that formats JSON), up to 10 attributes (String, Number or Binary in base64, optionally with a label such as String.json) and the size against SQS’s 256 KiB limit, attributes included. Then:

ARNscope checks these rules before anything is sent. The confirmation shows the start of the body; the activity log records only the size, the attribute names and the group.

Delete one message

Delete this message… deletes a message you fetched, using the receipt handle of the receive that fetched it. If the message was received again since (by a consumer or another peek), or its visibility timeout ran out, SQS may refuse the handle; receive it again, then delete it. A deleted message is gone for every consumer.

Purge a queue

Purge… deletes every message in the queue, including in-flight and delayed ones. SQS does it within 60 seconds and allows one purge per queue every 60 seconds; consumers never see the messages, and it can’t be undone. If a redrive is running from the queue, the dialog warns that a purge deletes the messages it has not moved yet.

On a production profile you type the queue’s name before Purge queue… turns on. The Rust backend checks the typed name too, so the purge is refused without it.

Permissions

What Actions
Queues, depth and settings sqs:ListQueues, sqs:GetQueueAttributes
Oldest message age cloudwatch:GetMetricData
Dead-letter sources and Lambda consumers sqs:ListDeadLetterSourceQueues, lambda:ListEventSourceMappings
Redrive history sqs:ListMessageMoveTasks
Peek and receive sqs:ReceiveMessage
Start a redrive sqs:StartMessageMoveTask, plus sqs:ReceiveMessage, sqs:DeleteMessage and sqs:GetQueueAttributes on the dead-letter queue and sqs:SendMessage on the destination
Cancel a redrive sqs:CancelMessageMoveTask
Send or replay sqs:SendMessage
Delete a message sqs:DeleteMessage
Purge sqs:PurgeQueue

When your role is denied an action, its button is disabled and says why. The IAM permission check shows what your role has.

Limitations

Working through dead-letter queues in a way this page doesn’t fit? Write to hello@arnscope.com.