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’})
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)
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.
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