Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot create a FIFO SQS through CLI

I'm trying to create a FIFO using the CLI, But I get an error

aws sqs create-queue --queue-name my-queue.fifo --attributes FifoQueue=true --region us-east-1

An error occurred (InvalidAttributeName) when calling the CreateQueue operation: Unknown Attribute FifoQueue.

The doc page says that this is a valid attribute. What am I missing?

like image 786
Kousha Avatar asked Apr 19 '17 00:04

Kousha


People also ask

How do I create a FIFO SQS queue?

To create an Amazon SQS queue (console) Open the Amazon SQS console at https://console.aws.amazon.com/sqs/ . Choose Create queue. For Type, the Standard queue type is set by default. To create a FIFO queue, choose FIFO.

Can you convert SQS to FIFO?

You can't convert an existing standard queue into a FIFO queue. To make the move, you must either create a new FIFO queue for your application or delete your existing standard queue and recreate it as a FIFO queue.

Is SQS a FIFO queue?

Q: Does Amazon SQS provide message ordering? Yes. FIFO (first-in-first-out) queues preserve the exact order in which messages are sent and received.


1 Answers

SQS FIFO queues are one of the rare services that weren't available in N. Virginia on launch.

See: https://aws.amazon.com/about-aws/whats-new/2016/11/amazon-sqs-introduces-fifo-queues-with-exactly-once-processing-and-lower-prices-for-standard-queues/

FIFO queues are now available in the US East (Ohio) and US West (Oregon) regions, with more regions to follow.

Try running the command in one of the supported region.

Ohio:

aws sqs create-queue --queue-name my-queue.fifo --attributes FifoQueue=true --region us-east-2

Oregon:

aws sqs create-queue --queue-name my-queue.fifo --attributes FifoQueue=true --region us-west-2

Update: Nowadays, North Virginia has support to FIFO SQS Queues.

like image 190
mfisherca Avatar answered Oct 11 '22 04:10

mfisherca