Connecting Multiple Google Cloud Service Accounts?

Is it possible to connect two services from different Google Cloud Service accounts together? Specifically, this scenario:

We have two GCS accounts: Account #1 and Account #2
Account #1  has Big Query tables we data we need read/write access to
Account #2 has Google Cloud Functions

We want to connect Account #2 function to the Account #1 Big Query tables.

I was thinking potentially of trying a solution using Firebase (doesn't have to be), a point in the right direction would be great.

Thanks
Jeremy LeysTechnical LeadAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeremy LeysTechnical LeadAuthor Commented:
Useful links:

(GCP cloud storage authentication)
https://cloud.google.com/storage/docs/authentication#storage-authentication-php

(Google cloud platform authentication documentation)
https://cloud.google.com/docs/authentication/

(Google big query access control)
https://cloud.google.com/bigquery/docs/access-control

(Programmatically create service account)
https://cloud.google.com/iam/reference/rest/

(Add service account to ACL for Google bigquery)
https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1577

(Grant roles to service accounts using API)
https://cloud.google.com/iam/docs/granting-roles-to-service-accounts
0
Ganesh GuruduSenior ConsultantCommented:
Yes its possible .

Authorize server-to-server interactions with service accounts

service accounts can be granted authorization to specific resources, by using similar techniques. Examples include granting an application the ability to read and write to Google Cloud Storage buckets or access particular datasets within BigQuery. Service accounts are useful for running automated processes because they are authenticated with a private key, not with a password.

https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations

https://cloudplatform.googleblog.com/2017/09/more-secure-hybrid-cloud-deployments-with-Google-Cloud-Endpoints.html
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeremy LeysTechnical LeadAuthor Commented:
Thank you this is very helpful
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Google

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.