# Get Required Values + Set Up Configuration to Connect GCP Cloud via Public API

Login to your [Google Cloud](https://console.cloud.google.com/) and click your **project name** in the header to open the resource selection modal.

Select the project you want to add and save your **project id**

<figure><img src="/files/HVilmwbb11fypH7XHjy0" alt=""><figcaption></figcaption></figure>

Activate a cloud shell

<figure><img src="/files/oO92bQQItU8TluhsAZDA" alt=""><figcaption></figcaption></figure>

Paste and execute following command. A success message should be visible.

```
gcloud services enable compute.googleapis.com storage-component.googleapis.com iam.googleapis.com container.googleapis.com logging.googleapis.com monitoring.googleapis.com cloudresourcemanager.googleapis.com cloudkms.googleapis.com bigquery-json.googleapis.com dns.googleapis.com sqladmin.googleapis.com
```

Create a [service account](https://console.cloud.google.com/iam-admin/serviceaccounts/create). You can freely name the account but we recommend having **aikido** in it.

<figure><img src="/files/A4hK0zPf711MfDNtM05F" alt="" width="375"><figcaption></figcaption></figure>

Add both **Security Reviewer** and **Viewer** roles

<figure><img src="/files/KCbq6YfmEeFyZjOJGy07" alt="" width="375"><figcaption></figcaption></figure>

Click **done**, step 3 of the create service account can be skipped

Navigate to the detail page of the newly created service account

Go to the **Keys** tab and **create a new key**

<figure><img src="/files/xcNjuL1VN8gOHwoxlRKj" alt="" width="375"><figcaption></figcaption></figure>

Select the **JSON** option. A json-file should be downloaded. Save this file.

You can now connect this cloud to Aikido using the public API.


---

# Agent Instructions: 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:

```
GET https://help.aikido.dev/cloud-scanning/connect-your-cloud/gcp/get-required-values-+-set-up-configuration-to-connect-gcp-cloud-via-public-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
