Я следовал этому руководству по настройке VP C для разрешения traffi c из моего проекта GCP в мою базу данных MongoDB Atlas.
- Настройка VP C в Атласе

Белый список ПК и GCP

Создать VP C на GCP

Локальный тест
Работает
Настройка ВМ

S SH на ВМ и тестовый вход в систему:
...
2020-04-01T04:15:59.926+0000 I NETWORK [js] DBClientConnection failed to receive message from shard...mongodb.net.:27017 - HostUnreachable: Connection closed by peer
2020-04-01T04:15:59.927+0000 W NETWORK [js] Unable to reach primary for set shard...
*** It looks like this is a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network.
2020-04-01T04:15:59.927+0000 E QUERY [js] Error: connect failed to replica set shard.../shard...mongodb.net.:27017,shard...mongodb.net.:27017,shard...mongodb.net.:27017 :
connect@src/mongo/shell/mongo.js:344:17
@(connect):2:6
exception: connect failed