Configure Multiple Projects Access in GCP
To configure cross multiple projects access in GCP, you can follow these steps:
Procedure
1 |
Sign in to your GCP console. |
||
2 |
Click on the project drop-down menu in the top navigation bar and select New Project or you can either create a new Project or use an existing project with service Account. |
||
3 |
Enter a name for your new project. Choose the organization that own the new project or select No organization if you do not have one. |
||
4 |
Click on the Create button to create the new project.
|
||
5 |
To link multiple projects in a single service account, navigate to IAM & Admin page and choose Service Account. |
||
6 |
Click on the Create Service Account button. Follow the prompts to create the service account and grant it the necessary permissions.
|
||
7 |
From the Keys tab, click Add Key to generate a private key in JSON file. |
||
8 |
Go to the IAM & Admin page in the GCP console and select IAM.
|
||
9 |
Click on the Grant access button to add a new project. |
||
10 |
In the New principals field, enter the email address of the service account you want to link to the project. |
||
11 |
Click on the Save button to associate the service account to your project.
|
||
12 |
Make sure that the Service Account has permissions to least common ancestor (common ancestor to all the projects selected) resource level, such as a folder or organization. |