How to configure AWS API Gateway as a passthrough as well as sub domain rewriting
I have REST api. I am trying to configure AWS API Gateway as a passthrough. My api endpoint domain has subdomain part, which indicates tenant identity. Ex. customername.xyz.com/api. I need the API Gateway url as xyz.com/api. In this case, all the requests from all the customers will come to xyz.com/api. However, I need to redirect the request to specific customer api endpoint based on on of the headers. Ex. header name is ‘x-cust-domain’. A value in this header would be customerName, which is nothing but the subdomain part of the endpoint url. Ex. customername.xyz.com/api. So an api call comes to api gateway and the api gateway redirects it to the right customer endpoint.
AWS gateway API: The difference between accessing Lambda via the test gateway API (proxy) and CLI?
Could someone please explain the difference between accessing Lambda via the test gateway API (proxy) and CLI?