> For the complete documentation index, see [llms.txt](https://docs.hava.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hava.io/importing/google-cloud/getting-started-google-cloud-platform/service-account.md).

# Service Account

To connect to your Google Cloud Platform (GCP) you will need to create a "Read Only Service Account" for your project and download the JSON key file to import into Hava.

### Create a new service account

Log in to your Google Cloud Console. In the IAM & Admin menu, select "Service Accounts" :

![](https://www.hava.io/hubfs/documentation/getting-started/Getting_Started_GCP_01.jpg)

Then select "**+Create Service Account**" :

![](https://www.hava.io/hubfs/documentation/getting-started/Getting_Started_GCP_02.jpg)

Give the account a memorable **service account name** and an optional description :

![](https://www.hava.io/hubfs/documentation/getting-started/Getting_Started_GCP_03.jpg)

Select **Create**, then in the Select a Role dialogue, Select **Project** and **Viewer**

![](https://www.hava.io/hubfs/documentation/getting-started/Getting_Started_GCP_04.jpg)

### Create Service Account Key

On the next page select **+Create Key**

![](https://www.hava.io/hubfs/documentation/getting-started/Getting_Started_GCP_05.jpg)

Select the Key Type : **JSON** and **Create**

![](https://www.hava.io/hubfs/documentation/getting-started/Getting_Started_GCP_06.jpg)

This will download the private key to your computer.

![](https://www.hava.io/hubfs/documentation/getting-started/Getting_Started_GCP_07.jpg)

From the Hava Environments dashboard - select **Add Environments**

![Add a new GCP Environment for Auto Diagram Generation](/files/4vcXdF7MWLDkNd0TzXEj)

In the Import an Environment dialogue, select the Google Cloud Tab and Select Choose File and select the file containing the Private Key JSON file

![Enter the Credential File for GCP and import data to create your diagrams](/files/6y2z01VkAg9HZgqTPLke)

Hava will then connect to your GCP Project, import the resources and create the interactive diagram.
