Monday, October 26, 2020

[google-cloud-sql-discuss] Connect to a Postgres CloudSQL instance Privately from a different VPC

Any ideas on how to approach this?

Using CloudSQL proxy is not an option for my case.

1. The VM is in the same project as the instance.
2. The CloudSQL instance is on a different network from the VM ( i.e VPC-a and VPC-b )
3. There's peering between the VPC-a and VPC-b e.g  VM instances can communicate via Private IP's

How can I connect to the CloudSQL instance from a VM instance on another VPC  in the same project using the internal IP addresses only?

Thanks,

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/559c9f12-bc09-4ad6-9eb9-500a65f59348n%40googlegroups.com.

No comments:

Post a Comment