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 年前檢視次數 945 次
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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南