I am trying to connect against Cloud SQL with the Cloud SQL Proxy but the problem is that in my company we use a private VPN to connect to Google Services, so I need to have enable the VPN and their proxy.
When I execute
./cloud_sql_proxy -instances=<CONNECTION-NAME>=tcp:5432
If I use a environment variable to declare the proxy and the user and password, it returns me,
errors parsing config:
Get "https://sqladmin.googleapis.com/sql/v1beta4/projects/<PROJECT>/instances/<REGION>~<SQL-INSTANCE>?alt=json&prettyPrint=false": proxyconnect tcp: tls: first record does not look like a TLS handshake
And if I delete the environment variable, it returns,
errors parsing config:
Get "https://sqladmin.googleapis.com/sql/v1beta4/projects/<PROJECT>/instances/<REGION>~<INSTANCE-SQL>?alt=json&prettyPrint=false": dial tcp <IP>:<PORT>: i/o timeout
Anyone resolve to execute the cloud_sql_proxy with another proxy?
question from:
https://stackoverflow.com/questions/65672114/using-cloud-sql-proxy-with-coorporate-proxy 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…