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.
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.
Depth, age and links

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:
- Failures go to: this queue’s dead-letter target, from its redrive policy, and after how many receives (for example “after 5 receives”). Click it to open that queue.
- Dead-letter queue for: the queues that name this one as their dead-letter target, as SQS lists them. Click one to open it.
- Consumers: the Lambda functions that read the queue through an event source mapping, each with its state (Enabled in green, amber when its last processing result is a problem, Disabled in red), batch size and maximum concurrency. Click a function to open it on the Lambda page. Other consumers, such as ECS services, EC2 workers or anything outside AWS, are not listed. “None from Lambda” means no event source mapping reads the queue.
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:
- Peek messages receives with a visibility timeout of 0 seconds, so the messages stay visible to your consumers.
- Receive uses the visibility timeout and wait time you set in the fields next to it.
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:
- Peek: “SQS has no read-only peek. Peeking receives up to N messages with a 0-second visibility timeout: workers and Lambda triggers can still get them, but each receive counts toward the redrive limit and can reorder FIFO groups.”
- Receive: “Received messages are hidden from workers and Lambda triggers for the visibility timeout, count toward the redrive limit (possibly moving them to the dead-letter queue) and block their FIFO group.”
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:
- Body as formatted JSON when it parses, otherwise as text, with Copy message body.
- Attributes, the message’s custom attributes with their data types.
- System, the SQS attributes such as sent time, sender, receive count and, on FIFO queues, the message group ID.
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

Redrive… starts an SQS message move task, which moves the dead-letter queue’s messages in the background. Choose:
- Back to their source: each message returns to the queue it failed in. The dialog names the source queues it found; the option is off when no queue names this one as its dead-letter queue.
- Another queue: every message goes to one queue you pick in the same region, for example a repair or staging queue. It cannot be the dead-letter queue itself.
- Maximum rate: optional, 1 to 500 messages per second, to spare a consumer that would be overwhelmed. Empty lets SQS choose (up to 500 per second).
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:
- Standard queues: an optional Delay of 0 to 900 seconds; empty uses the queue’s own delay.
- FIFO queues: a Message group ID (required) and a Deduplication ID, required unless the queue has content-based deduplication. Both are 1 to 128 letters, digits or punctuation. FIFO queues take no per-message delay.
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
- Reading changes state. A peek or receive counts toward the redrive limit and can move a message to the dead-letter queue. That is how SQS works, not something ARNscope can avoid.
- One region at a time. Links, redrive destinations and the queue list stay within the profile and region you chose; a dead-letter target in another region is shown by name only.
- Lambda consumers only. Consumers other than Lambda event source mappings are not listed.
- The oldest message’s age comes from CloudWatch, so it lags by a minute or more and is empty when the queue reported nothing in the last 30 minutes.
- One redrive per dead-letter queue, as SQS allows, at most 500 messages per second. The page follows a redrive for two minutes, then you refresh it by hand.
- Queue settings are read only. ARNscope does not create or delete queues or change their attributes, redrive policies or access policies.
- Purge and delete can’t be undone.
- Queue depth is approximate. Fetched messages live in memory only, at most 100 at a time.
Working through dead-letter queues in a way this page doesn’t fit? Write to hello@arnscope.com.