Accessing Google Cloud SQL from Google Compute Engine using private network
Asked Answered
H

3

3

is it possible to access Google Cloud SQL from Google Compute Engine using the private network?

It appears that Google Cloud SQL sees the public network IP for the Google Compute Engine instance.

And, the web console doesn't allow entering the instance private address.

Hammerlock answered 6/4, 2014 at 8:33 Comment(0)
T
5

No it is not possible to access Google Cloud SQL instances via a private IP address.

This this page confirms this, it says Note: You must use the external (public) IP address of the GCE instance ...when configuring Authorized IP Addresses to your cloud sql instance from your GCE instance.

Townshend answered 7/4, 2014 at 10:59 Comment(0)
Z
5

This is now available via private services access and VPC Network Peering.

The announcement:

https://cloud.google.com/blog/products/databases/introducing-private-networking-connection-for-cloud-sql

Details:

https://cloud.google.com/sql/docs/postgres/private-ip

Zoan answered 19/4, 2019 at 20:47 Comment(0)
S
0

You can't access cloud sql from a private IP address but you can whitelist NAT instance's Public IP in order to access cloudsql from private server.

Skelly answered 24/7, 2017 at 11:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.