Skip to content

Commit b54e9d2

Browse files
sopgregquetzalliwritesgregfurman
authored
Document FIFO queue creation (#193)
Co-authored-by: Quetzalli <[email protected]> Co-authored-by: Greg Furman <[email protected]>
1 parent edcb8a1 commit b54e9d2

File tree

1 file changed

+9
-0
lines changed
  • src/content/docs/aws/services

1 file changed

+9
-0
lines changed

src/content/docs/aws/services/sqs.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ awslocal sqs get-queue-attributes \
5858
--attribute-names All
5959
```
6060

61+
To create a [FIFO queue](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-fifo-queue-message-identifiers.html), the queue name must end with the `.fifo` suffix in addition to the `FifoQueue=true` attribute set:
62+
63+
```bash
64+
awslocal sqs create-queue --queue-name localstack-queue.fifo --attributes "FifoQueue=true"
65+
{
66+
"QueueUrl": "http://sqs.us-east-1.localhost.localstack.cloud:4566/000000000000/localstack-queue.fifo"
67+
}
68+
```
69+
6170
### Sending and receiving messages from the queue
6271

6372
You can send a message to the SQS queue which will be queued and a consumer can pick it up.

0 commit comments

Comments
 (0)