I am having trouble connecting my [Project A] Cloud Run instance to a [Project B] Cloud SQL instance.
I already set up the service account permissions as told on this article: https://cloud.google.com/sql/docs/mysql/connect-run
Which are like this:
- I created a service account on [Project B] that has Cloud SQL Admin and Cloud SQL Client permissions.
- I created a service account on [Project A] for the Cloud Run instance, this account has a user role on the service account for [Project B]
Both projects have the Cloud SQL Admin API active, and if I build the same Cloud Run instance on [Project B] it connects without any hitches, so I imagine this is a permission issue.
The error I get on the logs from [Project A] Cloud Run is: googleapi: Error 403: The client is not authorized to make this request., notAuthorized


this account has a user role on the service account for [Project B]Can you clarify this?