> 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.hava.io/importing/google-cloud/getting-started-google-cloud-platform/service-account.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
