Back
Is there a python script where I can lookup a queue by its name? If available, please help me with it?
Yes, it is possible! Check out this script. First, you get the AWS resource and then the name of the queue and print it.
sqs = boto3.resource('sqs')que = sqs.get_queue_by_name(QueueName='example')print(que.url)print(que.attributes.get('DelaySeconds'))
sqs = boto3.resource('sqs')
que = sqs.get_queue_by_name(QueueName='example')
print(que.url)
print(que.attributes.get('DelaySeconds'))
Also learn more about AWS, and become a master by enrolling for Intellipaat's AWS Solutions Architect Certification!
Learn how we helped 50,000+ professionals like you !
31k questions
32.8k answers
501 comments
693 users