I am trying to make an http request from my AWS Lambda, but this time.
My code is similar to this:
import requests def lambda_handler(event, context): print('Im making the request') request.get('http://www.google.com') print('I recieved the response')
But when I check this, I get a timeout.
Output signal
Im making the request END RequestId: id REPORT RequestId: id Duration: 15003.25 ms Billed Duration: 15000 ms Memory Size: 128 MB Max Memory Used: 18 MB 2016-04-08T20:33:49.951Z id Task timed out after 15.00 seconds
So, I know that the problem is not to find the request package, but that it runs my Python code. I'm just figuring out why this time is running out on this request.
source share