# PierCloud FinOps Platform - Oracle Cloud Basic Configurations

## Basic Configuration Process for Pier Cloud FinOps Platform

#### Welcome to Pier Cloud!

This document is intended to be a guide for you to prepare the environment so that Pier Cloud can install the Platform modules in your account.

The entire process will allow Pier Cloud to only read information, without any possibility of changing or deleting data from your account.

### Configuring access to the billing report

1. Access the URL <https://cloud.oracle.com/> and log in as Administrator.
2. In the side menu, click on **Identity & Security** and then on **Policies**.

**Note**: To perform this procedure, you must have the root 0 profile and access to the “**Default (Current domain)**” domain.

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUeUn_16onf1pf8-HWvXRSuaNnTa_-9v3XVsI24L1vaoSXHld6pqQphte7bsLKKfh1RLI0qcyFAfhwVYdDYA3DrbN4aOA5b-rMVMbv-e-zdGlgULXEns9H9em_1skuTwSC6ZoJPb41yGMU5dnCRPW-4=s2048?key=MpmYPTfrt1YSh2hgMReNhot_" alt=""><figcaption></figcaption></figure>

3. Create the policy that grants billing access to the **piercloud** group. Enter the following statements:

* define tenancy usage-report as ocid1.tenancy.oc1..aaaaaaaaned4fkpkisbwjlr56u7cj63lf3wffbilvqknstgtvzub7vhqkggq
* endorse group piercloud to read objects in tenancy usage-report
* allow group piercloud to inspect tenancies in tenancy
* allow group piercloud to inspect compartments in tenancy

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUesg0TiMtSH6Uq2fYCEtDeYGDWZqyKZY0iYmVJpQG0iLmTMnxKKH5IOkae4EQLvvOy3HFdiwHJfE1eUGNSAYd-lbqJXROj7YhzIphyhPgujez9C0kNshcdC4blBu03m9Vg34iCo5KSs5zOlzNoIEJ0=s2048?key=MpmYPTfrt1YSh2hgMReNhot_" alt=""><figcaption></figcaption></figure>

4. When finished you will see the screen below:

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUcvdIsNwTWfhduM9EgRl1COQx3rXJes8_t_CP9_hkcBYy61CcHNt6B1K8kPsrBynG2yZePOMjE3JhH44hOsMhUPbifb4MpmQLTDQL0YKb3Awh2kVQzWdPA2G9APUTvYNsTxBegP3WJ_cFymy0-WolQ=s2048?key=MpmYPTfrt1YSh2hgMReNhot_" alt=""><figcaption></figcaption></figure>

5. Click on **Identity** and then on **Domains (Current domain)** and select the domain.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2F9eaN1oKIEXhNgc84olNM%2Fimage.png?alt=media&#x26;token=3d07690f-02ac-4059-ad15-90121176c9ce" alt=""><figcaption></figcaption></figure>

6. With the domain selected, click on **Groups** and **create a new group** with the name **piercloud**. In the form we have the option to add a user, but since we don't have one yet, we can just **create the group**.

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUfQ5sZ33VrjDaErHI_2sW0_VvH0iaL9Kkx8VPoTonDXD0IM0XkAR-BTPJKjcO9yoyEClKsM7yEHp6i2-_Th3vhmeLVwZrASyLdRTGDPu2xN_liupqGQBW44gT2GEBjHAT9KB4w92MyFJ37__1SOyg=s2048?key=MpmYPTfrt1YSh2hgMReNhot_" alt=""><figcaption></figcaption></figure>

7. In this step, we will create the user who will have access to the billing reports.

In **Identity**, click on **Users** and fill out the form with the requested information. In this form, you can add the user that is being created to a group. Select the piercloud group that was created in the previous step.

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUc61sGf7HfmdTYl_tlQ53Sywc4WuT-reRJ1KjUzsb9z3Zp5UhtWKh-HZKPH2EEjlkqH2W8JZjoWqUHv0Pf76PlSarFDgqoysZKsdhuKKDUNyDpEsSptmCzIwn3CoIUY45m1NqQ0NRr5VNmDQ1o06w=s2048?key=MpmYPTfrt1YSh2hgMReNhot_" alt=""><figcaption></figcaption></figure>

8. After creating the user, you need to generate an access key.

Click on **API Keys**, then **Add API Key**. Download the private key and then click on the **Add** button.

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUdIiAK5rsJWQ3a2-ZtRpE60J6irN1ELjjMJMckxKGCPZQwCt4dm4-gBQRqD1SWKb6E2NEL7cIgarPOtm5i8P7FfbA2xbhB0vtJZbd7R7F0k9eVgPflokCLpHMpHjk-Q_DlGuVnRZti5JGYUQpRnUtI=s2048?key=MpmYPTfrt1YSh2hgMReNhot_" alt=""><figcaption></figcaption></figure>

9. After creating the access key, the page below will be displayed. Copy the generated data to perform the configuration on the PierCloud platform.

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUdw-s6GRBHyyU1gk38rnNWU5in4HDc8QX2mLctL-og3__-IwKDdQecQPyeqyc2gjALVROcpnGgC1uhe8eM4ZVmtSkjaKgfaV-AeARjaYm_i4KCEo2nBArbFFuOpWmDsbbCWRpCXymaHs6DQwNSMEQ0=s2048?key=MpmYPTfrt1YSh2hgMReNhot_" alt=""><figcaption></figcaption></figure>

10. Access the PierCloud platform <https://lighthouse.piercloud.com.br> and click on Settings.&#x20;

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2Fgpcw90O6KfXxexASv2ha%2Fimage.png?alt=media&#x26;token=ef251576-159f-4bfa-b916-fd94b4066da8" alt=""><figcaption></figcaption></figure>

10. Click on Secrets in the side menu and then click on the **Add** button to create a new secret for Oracle Cloud billing.

Fill in a friendly **name** for the secret and choose the **Billing Connector Credential -** **OCI** type.

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUfaYyKb5v4TdRVxF7fYO8pWRYMPjayB9425ePkJl5hd7NAuH7Gud-UECYf3n3jQ5GHyWJ5EP0vjyxBmGn6qCGBMgvOJKh51K6peuhZuS0dGtFbulRI_VPZinBXGp-XXI6fhP1Zw5uOhRYgqSXQMFnM=s2048?key=MpmYPTfrt1YSh2hgMReNhot_" alt=""><figcaption></figcaption></figure>

11. Once this process is complete, we need the following information to be shared via email:

    * Region
    * User
    * Fingerprint
    * Tenancy

    **Private Key**: The Private Key field should contain the value of the .pem key that you downloaded in step 8.

**That's it! Your OCI Billing Connector has been successfully configured.**

<br>
