Thursday, August 8, 2019

[google-cloud-sql-discuss] Re: Create a cloud function to export Cloud SQL databases from another project

You can access Second Generation MySQL instances as well as PostgreSQL instances in other projects if your Cloud Function's service account (listed on the Cloud Function's General tab in the GCP Console) is added as a member in IAM on the project with the Cloud SQL instance(s) with the Cloud SQL Client role. You may read related details on the "Connecting to Cloud SQL" documentation page.

Code-wise, there is no special arrangement to access buckets in other projects, as bucket names are globally unique. You still need to grant appropriate GCS permissions to your service account.  

--
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/80d7408e-4cf3-4912-89f8-055407d5615d%40googlegroups.com.

No comments:

Post a Comment