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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With