0

Is it possible for one stage in the API Gateway to be able to call different Lambda aliases based on the API Gateway URL? All I have found so far is where you can point a given API Gateway stage to a single Lambda alias using stage variables. What I want is something like the PROD stage to be able to call different aliases. Example call:

https://xyz.execute-api.us-east-1.amazonaws.com/Prod/v1

or

https://xyz.execute-api.us-east-1.amazonaws.com/Prod/v2

Possible?

1 Answer 1

1

The links which you provided are for an API with a single stage called Prod and two resources called v1 and v2:

![enter image description here

Thus you could set integration for each resource (v1 and v2) to different alias of the same lambda function. This would result in the API links you described in the question.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.