I would like a Google Cloud Function in projectA to be able to connect to a Google Compute Engine instance in projectB. I'm aware that I need a VPC Serverless Connector in order to accomplish this and have followed the advice at Cloud Functions > Guides > Connecting to a VPC network however it doesn't work for me. When I try to deploy my cloud function the deployment "hangs" and eventually fails after many many minutes of attempting to create the function.
I am wondering if perhaps I should follow the advice at Cloud Functions > Guides > Connecting to a Shared VPC network instead. As I said above my Cloud Function and GCE instance are in different projects, does this mean I must create a Shared VPC? I am not at all familiar with Shared VPCs at all so would appreciate some guidance here.