title: Can you pass stage variables to a lambda using the proxy integration?
body: <p>I can use stage variables to execute different lamdbas but it looks like you can also have mapping templates read them and do stuff based on their valued: <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/stage-variables.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/apigateway/latest/developerguide/stage-variables.html</a></p>
  
  <p>But Im using the lambda proxy integration so i dont have mapping templates. Is there a way to pass stage configuration variables to a lambda with the rpoxy integration?</p>
  
  <p>Right now Im just doing this to use a stage variable to point to the right lambda for the stage: <code>Fn::Sub: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${!stageVariables.LambdaFunctionName}/invocations</code></p>