# 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](https://3601125483-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Loco-kTiJ7Tu_lfPZqb%2Fuploads%2FT2M8CUv7MtaYTJfKYfPF%2FHava_Add_New_Cloud_Environment.jpg?alt=media\&token=99ac2214-0cfc-4091-808e-2315b2033dab)

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](https://3601125483-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Loco-kTiJ7Tu_lfPZqb%2Fuploads%2FwPOPg1YkvRef0hkZ35LA%2FAdd_GCP_Credentials.jpg?alt=media\&token=ed9cc4cc-d3ec-4b2c-bdb5-099463369010)

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