<filename>lambda/python/ip/what_is_my_ip.py<gh_stars>0
import json

def lambda_handler(event, context):
    ip =  event["requestContext"]["identity"]["sourceIp"]
    return {
            'statusCode': 200,
            'body': json.dumps(ip)
        }

<filename>lambda/python/ip/what_is_my_ip.py<gh_stars>0
import json

def lambda_handler(event, context):
    ip =  event["requestContext"]["identity"]["sourceIp"]
    return {
            'statusCode': 200,
            'body': json.dumps(ip)
        }
