We want to use the invokedFunctionArn value from the lambda context to determine which environment we're in (sandbox/staging/production), and in order to do so, we need to make sure the context object (where that value is given), is passed in as an argument to our Ruby code.
We want to use the
invokedFunctionArn
value from the lambda context to determine which environment we're in (sandbox/staging/production), and in order to do so, we need to make sure the context object (where that value is given), is passed in as an argument to our Ruby code.