Closed godd9170 closed 7 years ago
So we currently hardcode the stage name of the lambda microservice like this:
record = functions.request('salesforce-rest-dev-get', credentials.__dict__)
We need a way to properly call the right stage of a microservice. E.g. a dev function will only ever call other dev functions.
dev
I think that in the context parameter passed into the endpoint we might be privy to the name of the function where we can parse that out.
context
Oh you totes can http://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html
So we currently hardcode the stage name of the lambda microservice like this:
We need a way to properly call the right stage of a microservice. E.g. a
dev
function will only ever call otherdev
functions.I think that in the
context
parameter passed into the endpoint we might be privy to the name of the function where we can parse that out.