Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Source IP to connect google APIs via Interconnect

Hello,

recently we have installed an Interconnect with google through our partner. By the moment, it's working well, but we want to pass through this line the traffic of google apis (like cloud storage).

Following the documentation (https://cloud.google.com/vpc/docs/configure-private-google-access-hybrid) I have added the zone googleapis.com to our internal DNS. This works well. But other services (like google maps when go via interconnect) is not working due to the IP restrictions over API Key. I already added our IPs on the key api but didn't works. The only solution was to put without restrictions.
Which is our source IP when we connect to api services via interconnect?

Thanks,

 

Edgard

0 1 502
1 REPLY 1

Hello Edgard,

You can try using Private Service Connect[1] to connect to Google APIs. Instead of sending API requests to the publicly available IP addresses for service endpoints , you can send the requests to the internal IP address of a Private Service Connect endpoint. This section [2] of this documentation explained using Private Service Connect from on-premises hosts.

Sincerely
Anik
Reference:
[1]:https://cloud.google.com/vpc/docs/configure-private-service-connect-apis
[2]:https://cloud.google.com/vpc/docs/configure-private-service-connect-apis#on-premises