1

I run into the issue that I cannot access https://api.github.com from within an AWS Lambda function on eu-west-1 in Java). Is that by intention? Is it blocked on Github or AWS side? Lambda just fails with a timeout.

How can I access https://api.github.com from a Lambda funktion?

1
  • 2
    It sounds like you probably placed your Lambda function in a VPC subnet that doesn't have a NAT gateway. Commented Dec 15, 2017 at 18:07

1 Answer 1

1

Setting up a Role with Lambda execution and access from VPC fixed it. Found that great resource: https://gist.github.com/reggi/dc5f2620b7b4f515e68e46255ac042a7

Thanks to Mark B

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.