Mapping Lambda output to API Gateway header

前端 未结 5 676
失恋的感觉
失恋的感觉 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:34

    From the AWS developer forums today (25 September 2015) this isn't possible yet, but may be coming in the future:

    API Gateway does not currently support mapping from the integration response body to the response headers, but we are looking to add support for this in the future.

    Forum post here

    Edit December 2015: Feature as been added according to a post by an AWS employee in the thread linked above. Thanks to Peter Fox for pointing that out.

提交回复
热议问题