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.