I am using Java on AWS Lambda to get the URL source code of the site. I have the following code:
URL yahoo = new URL(url); URLConnection yc = yahoo.openConnectio
The simple solution for making this work - is putting your Lambda out of the VPC it's in right now.
VPC
Read my answer on this thread for detailed explanation on why this happens to you.
AWS lambda invoke not calling another lambda function - Node.js
(note: the answer is not related to NodeJS)