Skip to content

Instantly share code, notes, and snippets.

@erickhun
Last active February 21, 2018 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erickhun/a7d9f90427f9572fe59f47824d07d7f4 to your computer and use it in GitHub Desktop.
Save erickhun/a7d9f90427f9572fe59f47824d07d7f4 to your computer and use it in GitHub Desktop.
List all your sqs/elastimq queues
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