AWS Lambda invocation of internal ALB getting timed out

0

I have to call ALB using its DNS from a Lambda function. Both of them are under the same VPC and have the same set of private subnets associated with them. All the private subnets have a Route table with the route to nat-gateway configured. The target of the ALB is service running in the EC2 instances. The call from the Lambda function to ALB is getting timed out. What could be the reason for the same ?

질문됨 2년 전1415회 조회
2개 답변
1

Hello,

For the ALB, was it set up as Internal or Public Facing? If it's public facing, you will need to add a NAT Gateway to the VPC to allow the Lambda to access it even though both are in the same VPC.

If the ALB is set up as Internal, ensure that the Lambda is able to access the ALB's security group. The security group assigned to the ALB may not allow the Lambda access and it will need to be added to the SG.

profile pictureAWS
전문가
Chris_G
답변함 2년 전
  • In my scenario, the ALB is set up as internal. I had added Lambda's SG as the source to the ALB's SG but still was getting time out while trying to reach ALB from Lambda.

0

I did a mistake on my end, under terraform for LB the internal was set as false. Which made it internet-facing instead of internal and under private subnets.

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠