The first line is part of response logged after invoking another lambda in 'RequestResponse' type.
'StatusCode': 200, 'ExecutedVersion': '$LATEST', 'Payload': <botocore.response.StreamingBody object at 0x7f62887d1410>}
The following code is returning null
json.loads(lambda_response['Payload'].read().decode('utf-8'))
The call lambda which is returning response is doing correctly.
Any help is highly appreciated.
Thanks,
If your lambda can directly call an outgoing internet connection on AWS, then calling another lambda with boto3 works, but if your VPC does not have IG attached, then boto3 calling another lambda doesn't work. If thats the case, make the called lambda an internal private api gateway endpoint and call this endpoint on your calling lambda.