Connect to MemoryDB from Lambda

0

Hello,

I am trying to connect to my MemoryDB instance my VPC. Memorydb is up and running I can connect to it from another EC2 in the same subnet, but I cannot connect to the MemoryDB from the Lambda function, I receive timeout. The lambda function is configured in the same VPC and subnet. The security group is configured to allow connections to MemoryDB port 6379.

If anyone knows how to configure this properly please help.

Thank you

2개 답변
0
수락된 답변

somehow removing the ":6379/0" from the redis connection string made it work on lambda

답변함 2년 전
0

Did you add the Lambda's security group to the Memory DB's security group? If they are not in the same subnet, check also NACLs.

profile pictureAWS
전문가
Uri
답변함 2년 전
  • yep, they are in the same subnet, and use the same security group

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

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

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

관련 콘텐츠