'Using terraform how can I use one service account and define permissions on GCP services on another project

I am currently trying to use a service account that is already created in one project and use it again in a different project. We have cloud function running in a project B which needs to be invoked from a service account in project A. Is there a terraform resource we can use to define permissions cross project ? Thanks for your help.

Let me know if you have more questions



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source