# Cloud Credentials

The DuploCloud rules-based expert system requires GCP Subscription details to manage cloud resources effectively. By adding Cloud Credentials in the DuploCloud Portal, you provide the necessary subscription details for this management.

## Adding Cloud Credentials for GCP

To integrate GCP project cloud credentials into DuploCloud, follow these steps:

1. In the DuploCloud Portal, navigate to **Administrator** -> **Cloud Credentials**. The **Cloud Credentials** page displays.
2. Click **Add** to initiate the creation of new cloud credentials.
3. Ensure **Google** is selected from the **Cloud** list box as your cloud provider.
4. Enter your Google Project ID in the **Project ID** field. This ID uniquely identifies your GCP project.<br>

   <figure><img src="/files/bvUdrv6NJccxoAdK1A85" alt=""><figcaption><p><strong>Cloud Credentials</strong> page in the DuploCloud Portal</p></figcaption></figure>
5. Provide the Service Account email in the **Service Account Email** field. Service accounts are crucial for applications or compute workloads to interact with GCP services, managed through Identity and Access Management (IAM).
6. Paste the private key associated with your service account in the Service Account Private Key field. To extract and copy the private key from a JSON file, you can use the command: `jq -r .private_key < filename.json | pbcopy`.
7. Click **Submit** to save your credentials, which will be displayed on the **Cloud Credentials** page.

<figure><img src="/files/GTFHzpUYrbOxiNU2yLhy" alt=""><figcaption><p>GCP <strong>Cloud Credentials</strong> page in the DuploCloud Portal</p></figcaption></figure>


---

# 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://docs.duplocloud.com/docs/automation-platform/overview-1/gcp-services/cloud-credentials.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.
