Reputation: 703
I am working in AWS with the API gateway together with a lambda function. I read about how to pass parameters over to lambda function, that is fine. But I want to pass the whole path over to lambda. Does someone know how that would be done? Especially I want to pass the stage of the API gateway. The lambda function should connect to either the test server or the prod based on the stage. In the following example it would be test:
https://skjdfsdj.execute-api.us-east-1.amazonaws.com/test/name/name2
In next example it would be prod:
https://skjdfsdj.execute-api.us-east-1.amazonaws.com/prod/name/name2
Any information how that would work?
Thanks, Benni
Upvotes: 1
Views: 473
Reputation: 81
We can configure/deploy the API Gateway with respect to the stages and the HTTP Methods that are required Docs. There may be two cases :
Upvotes: 2