Saturday, January 13, 2018

[google-cloud-sql-discuss] Cannot connect from cli

I've been trying to connect using cli since a while without success and I'm finally trying to solve this issue instead of relying on the cloud console.

When I try to connect to our DB using `gcloud sql connect app-production --user postgres` cli throws this error:

ERROR: (gcloud.sql.connect) HTTPError 400: Invalid instance property.

if I try other things like `gcloud sql databases list -i app-production` everything works fine.
The IAM account I'm using has Editor permission so should include cloudsql.instances.connect.

Any idea?

--
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/0e100624-2d16-481a-ae6b-bee01fa4897c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment