Import Multiple Projects

How to Import Multiple GCP Projects using the same Service Account.

Hava has support for importing multiple projects using the same service account, provided the account has access to them.

The first step is to make sure the necessary API is enabled.

Navigate to your GCP account API library and enable - "Cloud Resource Manager API"

Give your service account access to other projects.

If your service account can access the resource manager API and has access to other projects, then Hava will automatically import them.

One way to achieve this is to manually add your service account as a member for other projects.

  • Select the project you want to add access to from the drop-down menu at the top of your GCP console.

  • Navigate to "IAM & Admin" > IAM

  • Click "Add" at the top of the page

  • In the "New Members" field, add the email address of your Hava service account

  • Make sure the new member has the "Project Viewer" role

  • Save

Now you can manually sync, or wait for the next auto import and you will see resources for both projects.

Please note: Although you can add as many GCP projects as you want to each service account, the more you add, the longer each import will take. If your projects are especially large and the import takes more than an hour, the import may time out.

It may be better to create multiple service accounts and then use the search/custom diagrams function to create diagrams with resources from both projects.

Last updated