无法通过 CLI 创建 FIFO SQS

Kou*_*sha 7 message-queue amazon-sqs amazon-web-services aws-cli

我正在尝试使用 CLI 创建 FIFO,但出现错误

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.
Run Code Online (Sandbox Code Playgroud)

文档页面说这是一个有效的属性。我错过了什么?

mfi*_*rca 12

SQS FIFO 队列是推出时在弗吉尼亚北部不可用的稀有服务之一。

请参阅:https : //aws.amazon.com/about-aws/whats-new/2016/11/amazon-sqs-introduces-fifo-queues-with-exactly-once-processing-and-lower-prices-for-标准队列/

FIFO 队列现已在美国东部(俄亥俄州)和美国西部(俄勒冈州)地区推出,后续还有更多地区可供使用。

尝试在受支持的区域之一中运行该命令。

俄亥俄州:

aws sqs create-queue --queue-name my-queue.fifo --attributes FifoQueue=true --region us-east-2
Run Code Online (Sandbox Code Playgroud)

俄勒冈州:

aws sqs create-queue --queue-name my-queue.fifo --attributes FifoQueue=true --region us-west-2
Run Code Online (Sandbox Code Playgroud)

更新:如今,北弗吉尼亚已支持 FIFO SQS 队列。