Map to endpoint based on header parameter in AWS API Gateway

Viewed 812

Would like to proxy request through Amazon API gateway. While doing so, I would like to select endpoint based on the value of header parameter.

For e.g. if header variable prod is true, request has to be proxied to https://prod.backend.com, else, it has to be proxied to https://sandbox.backend.com.

Looked into staging variables but not clear, how this can be used. Appreciate any suggestion on how this can be achieved.

0 Answers
Related