EDIT - SOLVED
as mentioned in comments here is a link to follow IP whitelisting process and check your IP's that work with VPC: MongoDB and Google Cloud Functions VPC Peering?
There are 2 things I had to fix additionally:
ORIGINAL QUESTION
I tried to create VPC peering connection from my App Engine on GCP to Mongodb Atlas. App Engine app is node / react app that is working fine with whitelisted 0.0.0.0 in Mongodb. Here are steps that I made correctly according to all documentations:
vpc_access_connector:
name: projects/project-id/locations/location/connectors/connector-name
There is a problem because connection can't be made and it is timed out (502 Bad Gateway error in my API service). When I have 0.0.0.0/0 (internet) whitelisted in Atlas everything is working fine.
I was wondering if there are any possible changes that can be made in GCP:
As mentioned in comments here is a link to follow IP whitelisting process and check your IP's that work with VPC: MongoDB and Google Cloud Functions VPC Peering?
There are 2 things I had to fix additionally: