Friday, May 8, 2020

[google-cloud-sql-discuss] How to give one GCP project access to another GCP project's SQL database?

I am getting this error. 


CloudSQL warning: your action is needed to update your function and avoid potential disruptions. Please see https://cloud.google.com/functions/docs/sql#troubleshooting for additional details: ensure that the account has access to "xyzapp:us-central1:db-11-dev" (and make sure there's no typo in that name). Error during createEphemeral for xyzapp:us-central1:db-11-dev: googleapi: Error 403: The client is not authorized to make this request., notAuthorized

ProjectA: We run the App on this

Project B: All the database instances and databases are setup here

Project A needs to have access to Project B's databases.

I have enabled Cloud SQL Admin API for project A. But I don't know how to grant access to CLOUD SQL Admin API from project B Database.

--
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/8a5a4902-39d8-48d8-a994-4768b577ed1c%40googlegroups.com.

No comments:

Post a Comment