# 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="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F3JGZDmu2WZInOmTr4A3X%2Fgcp_cc2.png?alt=media&#x26;token=d84fe645-fadb-44c3-8ba3-30df46ffd316" 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="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F2XHqhrNnIMXeWzpv5oNv%2FCLOUDCREDS.png?alt=media&#x26;token=34c2b15f-8d90-4a22-ad98-7c305675d41d" alt=""><figcaption><p>GCP <strong>Cloud Credentials</strong> page in the DuploCloud Portal</p></figcaption></figure>
