Search code examples
amazon-web-servicesmessage-queueamazon-sqsaws-cli

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?


Solution

  • 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 regions.

    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 for FIFO SQS Queues.