I'm trying to grab the IP of users.
I followed guides on how to do this, and found answers that use event.source_ip in the lambda function, which connects to the API Gateway.
The result returns 'null' in my Lex & Facebook bots, and returns 'test-invoke-source-ip' in the API Gateway Test.
Lambda:
exports.handler = (event, context, callback) => {
callback(null, event.source_ip);
};
API Gateway: Integration Request
