Mapping Lambda output to API Gateway header

前端 未结 5 853
失恋的感觉
失恋的感觉 2021-01-31 20:02

I\'m trying to map the JSON output from a Lambda function to the header of an API Gateway call. As an example here, we can consider a redirect scenario. So I\'d like to add a

5条回答
  •  你的背包
    2021-01-31 20:45

    Today (12th, November, 2015), I was looking for how to pass the Location header from my backend API to a Location header in integration response.

    This configuration worked and I could get Location header from backend api:

    Looks like the solution proposed by Tobias is possible currently. However, the Location header points to the backend API and this is not what we want. I'll try to find a solution for this and post it here.

提交回复
热议问题