'AWS SQS same queue on two different websites

Can I use the same AWS SQS URL (same account user id, same queue name) on two different Laravel websites?

This is the env setting in both websites

SQS_PREFIX=https://sqs.us-west-2.amazonaws.com/{user_id}
SQS_QUEUE=default

Dispatch a queue job in Website A works perfectly. When I tried to dispatch a job in Website B, it called the job function in Website A instead.

Website A and Website B have all the same routes, controllers and jobs. It's just the URL for both websites are different (UAT and PRODUCTION website)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source