Questions tagged [cloud-sql-proxy]

243 questions
1
vote
1 answer

Not able to connect using private IP via cloud sql proxy in Google Cloud Shell -

I try to ran https://github.com/terraform-google-modules/terraform-google-sql-db/tree/v4.5.0/examples/mysql-private It creates sql instance with both privateIP and publicIP. Thats good. But when i try to connect to mysql it says this, command from…
1
vote
1 answer

Google Cloud Run looses connectivity to Mysql when using mapping custom subdomain

Facing an issue while connecting to my SQL instance from cloud run when a custom domain is mapped. Before the custom domain mapping, the connection was fine, after that it is just throwing Error: connect ETIMEDOUT. I am using Public IP and seems to…
1
vote
2 answers

How to connect from my pc to sql instance with private ip in google cloud platform

I have been struggling when trying to connect to an instance of Postgresql in Google Cloud Platform (from my machine in my home network), which has a private IP. I have tried with https://cloud.google.com/sql/docs/postgres/connect-admin-proxy (Proxy…
1
vote
1 answer

Is it possible to replace Cloud SQL proxy with Istio proxy?

Currently I am using Cloud proxy to connect to a Postgres Cloud SQL database as a sidecar. When using Istio, however it introduces its own sidecar, which lead to the result that there are two proxies in the pod. So I thougth, can the encrypted…
user140547
  • 7,750
  • 3
  • 28
  • 80
1
vote
1 answer

Multiple Cloud SQL Proxies

When should multiple Cloud SQL proxies be used to a single instance of Cloud SQL for Postgres? We currently are considering doubling Postgres max connections from ~2500 to ~5000 due to running out of connections and would like to know what are the…
Dave
  • 123
  • 2
  • 13
1
vote
1 answer

Cannot authorize sql proxy from local machine using credential file to connect to Cloud SQL

I am trying to connect to Google Cloud SQL from my local windows machine using SQL Proxy. I am able to connect using authenticated Cloud SDK client: C:\>cloud_sql_proxy -instances=my-proj:us-central1:my-instance=tcp:5000 2020/09/10 01:31:50…
TechiRik
  • 1,893
  • 6
  • 27
  • 37
1
vote
0 answers

File cloud-sql-proxy.service: Invalid argument - Google cloud

While I am trying to create an ephemeral Dataproc cluster along with loading data from a MySQL instance, I am getting the following error: Failed to enable unit: File cloud-sql-proxy.service: Invalid argument
1
vote
1 answer

Setting custom CA cert with cloud_proxy_sql

I'm trying to use GCP's cloud_proxy_sql via one of our proxy server with custom CA signed certificates. I tried setting the cert using the config custom_ca_certs_file of gcloud config. Also double checked if the ca cert is set, using the command…
1
vote
0 answers

Connect to Google Cloud SQL from Macbook without firewall rules or allowed networks?

I leave this here in case someone else struggles with the same issue. Visual representation of what I am trying to reach from my MacBook MacBook -> VPN -> On-Prem Firewall -> GCP Firewall -> Cloud SQL Instance NOT working - detailed workaround…
1
vote
1 answer

Quarkus Datasource using Unix Socket is ignored

I am trying to connect quarkus reactive datasource using (Google Cloud SQLproxy). You are able to run the cloud_sql_proxy as unix socket available connection.In this way: ./cloud_sql_proxy -dir=/tmp/cloudsql…
1
vote
2 answers

Cloudsql access from ai-platform job

Google has nice ways to connect to cloudsql from other google services but I cannot see how to connect from ai-platform jobs. As part of our training job, we need to update our cloudsql db with metrics but the only I could get it to work is by…
1
vote
0 answers

Connect to Cloud SQL Private Postgres instance from outside

The Postgres instance does not have a public IP and is using a VPC network. To reach it I am using the cloud sql docker proxy on OSX and a service account with the cloud sql admin role and cloud sql API enabled. I am able to start the proxy and…
Louis
  • 185
  • 9
1
vote
1 answer

How can one unbind port 3306?

I am new to google cloud but was just able to deploy the test Django app that google provided in their documentation. This process included downloading the cloud_sql_proxy and running the following in the terminal (MacOS): ./cloud_sql_proxy…
1
vote
2 answers

GAE Cloud-sql-proxy - How to connect to two DB locally?

I try to connect to two different Cloud MySCQL Databases instances for one GAE project. Locally i try to put first to 127.0.0.1:3307, scond to 127.0.0.1:3308. I execute: $ C:\\...\cloud_sql_proxy.exe -instances=mypoject:region:first_db=tcp:3307,…
shulya403
  • 422
  • 1
  • 6
  • 17
1
vote
0 answers

pg_basebackup on Google Cloud SQL database

I'm currently experimenting with Googles Cloud SQL and I'm facing the following problem: Goal I want to download a base-backup and after that the upcoming WAL-files to implement on-prem failover strategies for my Cloud-SQL hosted PostgreSQL…