Skip to content

sianrachel/sqs-query-with-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python SQS Query Script (Part 2/2) πŸ§šβ€β™€οΈ

A python script that fetches and displays items from an SQS queue.

Requirements πŸ„

Python πŸ›

Name Version
Python3 >= 3.8
Pip3 >= 3.48
Boto3 >= 1.16
Pytest >= 3.48
Moto >= 3.1.17

Requirements.txt generated with:

pip3 freeze > requirements.txt

Installing requirements:

pip3 install -r requirements.txt

AWS 🐝

  • A working AWS account with Admin access that you have previously created SQS queues on using this repo, if you don't have access, please request
  • AWSCLI installed

Listing queues 🐿️

We created our SQS queues using the config from

To call all queues created previously and get all queue names:

aws sqs list-queues

Running as a script πŸ¦‹

Target the main file sqs_queues and specify a queue name (listing in previous step) to receive the queue url:

This is an example cmd, but you can use any queue name you have created:

python3 -m sqs_queues 'non-prod-test-queue-100'

Running Tests 🐌

Running tests with clean verbose output:

pytest --no-header -vv

About

A script to query an SQS queue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages