Create a queue using boto - AWS SQS

0 votes
How do I create a new queue using boto in AWS SQS? Can I please have the code?
Aug 20 in AWS by Varun
12 views

1 answer to this question.

0 votes

Try this code:

# Get the service resource
sqs = boto3.resource('sqs')

# Create the queue. This returns an SQS.Queue instance
que = sqs.create_queue(QueueName='test', Attributes={'DelaySeconds': '5'})

# You can now access identifiers and attributes
print(que.url)
print(que.attributes.get('DelaySeconds'))
answered Aug 20 by Vishal

Related Questions In AWS

0 votes
1 answer

How to create a VPC using AWS CLI?

To create an Amazon VPC using AWS ...READ MORE

answered Feb 21 in AWS by Priyaj
• 56,520 points
80 views
0 votes
1 answer
0 votes
1 answer

How to create a DynamoDB using AWS CLI?

You can create a DynamoDB table using ...READ MORE

answered Feb 22 in AWS by Priyaj
• 56,520 points
58 views
0 votes
1 answer
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer

How to create a S3 bucket using AWS CLI?

You can use the following command:- C:\Users\priyj_kumar>aws s3api ...READ MORE

answered Feb 15 in AWS by Priyaj
• 56,520 points
351 views