Q:

Creating a fifo queue in SQS using boto3

Can anyone help me with creating a fifo queue in sqs using boto3. Tried this but this doesn’t work
sqs.create_queue(QueueName='test', Attributes={'FifoQueue':'true’})

A:

Your queue name has to end in .fifo and you have to be using either us-west-2 or us-east-2 region as those are the only regions that currently support the FIFO feature.

A:

This is a complete working example of creating a FIFO queue on SQS:
import boto3
import pprint
import time

sqs = boto3.resource('sqs', region_name='us-west-2')

queue = \
    sqs.create_queue(QueueName='test.fifo', Attributes={'FifoQueue': 'true'})
pprint.pprint(queue)

