I started building a JAM app using AWS Lambda, AWS API Gateway and serverless, as well as another vendors API.
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.
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.
How do I get the Lambda function HTTP event URI as an env or something passable to another Lambda function in the same stack?
Can someone provide some serverless snippet on how to achieve this? Thanks!