[Django]-Django + Celery with AWS SQS – Running on localhost instead of AWS and not getting messages

4👍

Solved! The problem was that i didn’t put the URL after the “@”.

BROKER_URL = "sqs://{access_key}:{secret_key}@sqs.eu-west-3.amazonaws.com/XXXX/XXXX.fifo".format(
    access_key=quote(AWS_ACCESS_KEY_ID, safe=""),
    secret_key=quote(AWS_SECRET_ACCESS_KEY, safe=""),
)

Leave a comment