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.
Are you still having issues with connecting via the private endpoint? If so, I was wondering if you could provide the following details:
- What type of cluster you’re trying to connect to (serverless or dedicated M10+)
- The full connection error message
- Is the endpoint created in the same region as the Atlas cluster?
- Driver and driver version you’ve attempted to connect with