0

When trying to use requests in my function, it only timeout without additional error. I was trying to use rapidapi for amazon. I already have the host and key, but when I test my function it always timeout. My zip file and my function were on the same directory and I knew that my code was correct.

1 Answer 1

1

I just figured out that my VPC configuration in Lambda was can only access within the resources of the VPC. I just removed the VPC and it now runs. But when your lambda function will connect to your database, you need to add and configure your VPC.

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

1 Comment

No that's not quite true, you can utilize a Lambda function without a VPC but still utilize RDS just fine. The trick is you need to ensure that your RDS instance is accessible publicly. You can still use a SecurityGroup to filter out and drop other traffic safely on the RDS.

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.