# FOCUS for GCP

## Focus Configuration Process for GCP Provider

#### Welcome to Pier Cloud!

Pier Cloud is our centralized platform for managing cloud data and services. Our focus is to ensure that access to resources is secure, convenient, and efficient. This document is designed to guide you through configuring Focus on the GCP provider.

Below, you will find a detailed process that explains each step clearly and objectively.

### In the GCP environment

1. To configure Focus on GCP, the customer can use the same information used in the billing configuration, only needing to activate the pricing table.

In the GCP console, click on the menu on the left and select Invoicing (Billing), as illustrated in the image below.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FaYAvMrBSawvoCyyxS6O0%2Fimage.png?alt=media&#x26;token=5c68229e-4e5c-4aca-af52-3719ff1ce7e0" alt=""><figcaption></figcaption></figure>

2. Here click on **Billing export**, as illustrated in the image below.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FAUf8MukE3C7gIJTWVhIz%2Fimage.png?alt=media&#x26;token=0c067746-a6b4-4e3b-9a1a-00d3f5f0f11d" alt=""><figcaption></figcaption></figure>

3. In this case the Price table is already activated, but if it is deactivated, just activate it.

**Note**: Click **EDIT SETTINGS** to view the configuration screen.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FgCE8SzAlQnhuT4i6N9Nt%2Fimage.png?alt=media&#x26;token=0fb2adaf-ce2f-4aba-b0d9-eda59b4ff2e3" alt=""><figcaption></figcaption></figure>

4. Here in the **Projects** field, select the project, in the **Dataset** field, select the Dataset created, as illustrated in the image below.

Note: In this case, we will use the same dataset created for billing, but if you do not have a dataset created, just click on **CREATE NEW DATASET** to create a new dataset.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2Fi7S6KGS6FCmDKNE5OuoZ%2Fimage.png?alt=media&#x26;token=927799c3-716f-4031-8b12-3e6d6d2846a0" alt=""><figcaption></figcaption></figure>

5. Here in the **Service Account** field, select **bigquery**, then click **SAVE**, as illustrated in the image below.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2F6AMlMiron4fXXDkh07tI%2Fimage.png?alt=media&#x26;token=bc1afcd2-5f1e-4c26-93c5-1ebcbad191af" alt=""><figcaption></figcaption></figure>

6. Done, the Price table has been successfully **activated (changed)**! As illustrated in the image below.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FsIz7SEC9gVVGzF3ishzU%2Fimage.png?alt=media&#x26;token=efd35501-3bb7-4c4c-90c3-2eabd692b375" alt=""><figcaption></figcaption></figure>

### On the Pier Cloud Platform

1. On the Platform home page, click on the user icon and then select **Settings** as shown in the image below:

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2F9aq3TLRygtLSiOxgWU40%2Fimage.png?alt=media&#x26;token=68155cdc-b4c2-4dad-b5bf-bc5d76f6f94a" alt=""><figcaption></figcaption></figure>

2. In the left menu, select **Billing Connectors.**

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FY0EXyhHGMwRylbherXrt%2Fimage.png?alt=media&#x26;token=df2e8e41-aad5-47e9-8d28-b004c1506813" alt=""><figcaption></figcaption></figure>

3. In this step, click on **+ Add Connector** in the top right menu as shown in the image below.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FRsenDLFz4lt9Ij8KbLux%2Fimage.png?alt=media&#x26;token=eb14774a-eb58-46fe-a2dc-3b75f2bae599" alt=""><figcaption></figcaption></figure>

4. In this step, in the **Type** option, select **FOCUS**, in the **Cloud Provider** field, select **GCP (Google Cloud Platform),** as illustrated in the image below.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2Fql3saUDhOyqByGIlo5l1%2Fimage.png?alt=media&#x26;token=64296df0-cd9b-4c87-8d80-36427666dabd" alt=""><figcaption></figcaption></figure>

5. In this step, fill in the fields with the following information:

   * **Billing Connector ID**: Enter a name to identify the billing connector (example: GCP Pier Focus).
   * **Select the secret for this billing connector**: Add the billing secret. If the customer created a specific secret for Focus, select the secret created (example: gcptest).
   * **GCP Account ID**: Enter the GCP account ID.
   * **GCP Project ID**: Enter the project ID (example: Focustest).
   * **Region**: Enter the region where the project was created.
   * **BigQuery Dataset Name**: Enter the name of the dataset created (example: test).
   * **Cloud Storage Bucket Name**: Enter the name of the bucket configured for the project (example: piercloud-aijeeng5).

   **Note**: The settings in the image below are the same as those used in billing, with the only addition being the activation of the price table, as shown in steps 4 to 9.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FHgGsrxESJm1o70G2nQJI%2Fimage.png?alt=media&#x26;token=cf1f229d-c210-488c-be81-e3d22df87d96" alt=""><figcaption></figcaption></figure>

6. The Billing Connector for Focus has been successfully created! To view it, click on the "**FOCUS**" tab, as shown in the image below.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FrLmH6KC01wvslljPhfHY%2Fimage.png?alt=media&#x26;token=94ae430a-8b63-4b70-a959-c62872eb1241" alt=""><figcaption></figcaption></figure>
