Lambda call ALB in same subnet

Viewed 23

I want to preface this with, I have no clue when it comes to networking so if this question seems really dumb, I apologize.

I have an AWS Lambda that calls an external system's API. They have requested that instead of me calling their endpoint, that I setup an ALB on my side. That ALB will then register their endpoints and manage the balancing for them.

I created an EC2 ALB and put it in the same VPC as my Lambda. I added a SG to the ALB to allow traffic over 443 and 80. I setup a listener rule that will forward to the target group when a specific path is included in the request.

From here, I'm not sure how I am supposed to call my ALB from my lambda. I tried using the DNS name (http://{DNS Name}{Lisenter Rule Path}) but I get an error "Not Found for URL" with the URL mentioned earlier.

Is there something else I need to do to configure my Lambda to call the ALB? Should I not use the DNS name for accessing it?

0 Answers
Related