Saasli / saasli-backend

Documentation
https://saasli.github.io/docs/
0 stars 0 forks source link

Contextual Lambda Stage Runs #31

Closed godd9170 closed 7 years ago

godd9170 commented 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.

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.

godd9170 commented 7 years ago

Oh you totes can http://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html