Last active
February 21, 2018 12:46
-
-
Save erickhun/a7d9f90427f9572fe59f47824d07d7f4 to your computer and use it in GitHub Desktop.
List all your sqs/elastimq queues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
elasticmq_host = 'http://0.0.0.0:9324' | |
ressource = boto3.resource('sqs', | |
endpoint_url=elasticmq_host, | |
region_name='elasticmq', | |
aws_secret_access_key='x', | |
aws_access_key_id='x', | |
use_ssl=False) | |
client = ressource.meta.client | |
q = client.list_queues() | |
for url in q.get('QueueUrls', []): | |
print(url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment