I have a server less application running in AWS Lambda event driven by a SQS queues to handle sending emails. I currently have 5 functions that have been running in production for a couple of years. I now need to add another function. I cannot find a way to have the queue that triggers the function be different depending on the stage. Right now, if I deploy the dev stage, it would deploy copies of each of the functions that are triggered off the same queues as the production functions. That would lead to invalid processing.
Is there anyway to specify separate queues depending on stage? I have tried to use variables to specify the name, but always encountered errors.