A python script that fetches and displays items from an SQS queue.
| 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
- 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
We created our SQS queues using the config from
To call all queues created previously and get all queue names:
aws sqs list-queues
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 with clean verbose output:
pytest --no-header -vv