Where does one configure mapping templates in AWS API Gateway or Lambda?
问题 I see many people talk about using mapping templates in the form of json object to make user agents and ip addresses available to Lambda functions? Where are these json objects configured in the many control panels? 回答1: Api gateway -> your api -> your endpoint/resource method -> integration request -> body mapping templates Create one with a valid Content-type header such as application/json You can then pick a template or roll your own map. For example the template which maps everything