I followed the docs here: https://www.mongodb.com/docs/atlas/security-private-endpoint/#make-sure-that-your-security-groups-are-configured-properly-1
I have a VPC with a private and a public subnet. The VPC endpoint is configured and both active on the AWS and the Atlas side.
In the Atlas UI I got the connection string for the PrivateLink connection.
When I try to connect a AWS Lambda function, residing in the private subnet, the connection times out.
Connection string looks like this: mongodb+srv://test-user:REDACTED@development-pe-0.a29cq4z.mongodb.net/?retryWrites=true&w=majority
Any help would be appreciated.