How is the secure connection between serverless instance of mongodb atlas and aws lambda?

I have searched for the answer and I have not found a satisfied answer, is it true that for now the serverless instance with aws lambda function can only be through ip whitelist 0.0.0.0/0 (allow from anywhere), is there no safer way?
I read the documentation that serverless instances do not support network peering, and private endpoints are still in the development stage and cannot be used yet.

Hello Developer_JS_Backend

Thanks for the question. Serverless Instances do support private endpoints. See this link for more information.

Best,
Anurag