I'm trying to enable my firebase functions to connect to my mongodb in atlas without allowing all inboud traffic. I've successfully done the peering with mongodb's VPC and the custom vpc I've created.
But no matter what ip range I try the servereless vpc connector ends up in a 'bad state' where I need to delete it. In this bad state, adding the functions to the VPC also fails claiming the connector doesn't exist.
My vpc network, connector, firebase functions are all in europe-west2.
My vpc configuration:
ranges: 10.0.0.0/9
gateway: 10.0.0.1
and one subnet called 'main' with the same settings.
My vpc connector configuration is in the same zone and I've tried various options for ranges such as:
10.64.0.0/28
and the default recommended 10.8.0.0/28
which I've double checked to not be in use already by any other network.
What exactly am i missing from this configuration? I've read several articles and stackoverflow posts + documentation and none of them were clear on how you're supposed to match the two.
Does the vpc network have to have a wider range defined? of which the serverless connector must be part of? but they mention there must be no overlap so that can't be.