Aug 26, 2017 · 1 min read
Why do you say that lambda functions must return a JSON map? There are lots of examples of Lambda functions that return Strings. Here is an example that works when deployed and configured manually
The same example gives a 502 Bad Gateway error if I deploy it with the serverless-application-model, though
I haven’t figured out what SAM is missing, but maybe it is related to the lambdas returning a String instead of a JSON map.