title: Passing serverless API Gateway URL as a parameter for a Lambda function in the same stack
body: <p>I started building a JAM app using AWS Lambda, AWS API Gateway and serverless, as well as another vendors API.</p>
  
  <p>This vendor API is invoked by a Lambda function, and requires a callback URL to be passed to receive some data once it has done its job.</p>
  
  <p>As I'm spawning everything with serverless, going to the console and extracting the API URL to manually set is as an env variable is of no use to me, and I need a way so that serverless can pass the exposed API endpoint URL to the lambda function.</p>
  
  <p>How do I get the Lambda function HTTP event URI as an env or something passable to another Lambda function in the same stack?</p>
  
  <p>Can someone provide some serverless snippet on how to achieve this?
  Thanks!</p>