I'm new to the aws serverless world and I have the following simple system:
- an input queue which invoke a lambda for each input it has
- the lambda do some work on that input and then push it into an output queue
My question is how can i get the output queue url/physical name?
I found 2 solutions so far:
- pass it by env variable in the cloudformation
template.yml
file. The con is that I have to provide this env variable every time. And in complex system there are a lot such variables. Thats feels fishy to me. - use
boto3.resource('cloudformation').StackResource(stack name, resource name).physical_resource_id
. The con is that I hard coded the template structure in my code.
What is the correct solution?