I am using MongoDB Atlas and AWS Lambda.
My backend lambdas are written in python and i am using pymongo[aws]
to connect to my cluster.
I have setup peering to allow connectivity only from inside my VPC.
When i run a query col.find
, col.update_one
, ... they are working fine, but when i call delete_one
it times out.
Inside the VPC the lambda has no internet access but i didn't think it would be required for deletion
...
Unless i am completely wrong, please why delete_one
times out in my configuration ?
EDIT :
The AWS lambda contains 5 queries including update_one
, find
and delete_one
.
Only the delete_one
from this same lambda is timing out. Also, if i simply remove the lambda from the VPC, the delete_one
is working again.
I add the link to my case in MongoDB community which was linked to connectivity using AWS credentials, but i have fixed this and i am asking at the end the issue with the delete_one
.