I have created a private endpoint for my M10 but cannot get my Lambda function to reach it

Hi All,
Hoping someone can help me figure this out. I followed the tutorial on creating a private endpoint. The Atlas Endpoint Service it provided though looks nothing like the connection strings in any of the tutorials. It is like “com.amazonaws.vpce.us-east-1.vpce-svc-xxxxxxxxxxxx”.

I have a lambda function that I am trying to connect to my cluster. It will insert documents into a Mongo DB I create on a EC2 instance but it will not work with my Atlas cluster. I think the issue is either in the Private Endpoint configuration or in the connection string.

I am leaning towards the connection string because, as I mentioned the Atlas Endpoint Service provided looks nothing like the connection strings in any of the docs. I have also tried the public connection string which I can connect to from Compass and other tools but not from the Lambda function.

Am I supposed to use the Atlas Endpoint Service to get a private endpoint or can anyone suggest what I might be doing wrong?

Banging my head against the wall and have been all through the docs and the web trying to find an answer.

Cheers,
Dan

Hi @Dan_Dickout,

I followed the tutorial on creating a private endpoint. The Atlas Endpoint Service it provided though looks nothing like the connection strings in any of the tutorials.

I have a lambda function that I am trying to connect to my cluster. It will insert documents into a Mongo DB I create on a EC2 instance but it will not work with my Atlas cluster. I think the issue is either in the Private Endpoint configuration or in the connection string.

Please provide / advise on the following:

  1. The link to the tutorial you’re following
  2. The connection string being used (redact any credentials and sensitive information before posting here)
  3. Any errors you’re receiving upon connection attempt(s)

Am I supposed to use the Atlas Endpoint Service to get a private endpoint or can anyone suggest what I might be doing wrong?

The interface endpoint is created on the AWS side which is linked to the Atlas endpoint service. The Set up a Private Endpoint for Dedicated Cluster documentation at step 6 provides a command to run for the AWS end (using AWS CLI) to create and configure the endpoint to utilise the Atlas endpoint service.

Best Regards,
Jason