Skip to main content

Connect OCI tenancies

A tenancy is a partition of Oracle Cloud Infrastructure (OCI) where you create, organize, and administer your cloud resources. This page explains how to connect your tenancy to DoiT.

Required permissions

You need administrator access to your OCI tenancy to create the IAM role, group, and policies for DoiT to access your billing data:

  • A dedicated IAM user for DoiT

  • An IAM group with billing read permissions

  • Your Tenancy OCID and Home Region

Connect your OCI tenancy

The connection wizard consists of two parts: setting up the OCI connection and adding an API key.

Launch the wizard

  1. Navigate to the integrations catalog dashboard.

  2. On the Oracle Cloud Infrastructure integration card, select Connect + or Assets, whichever is available.

  3. Select Connect new tenancy.

Set up connection

In this part, you create the required OCI resources and provide your tenancy details.

The script is omitted from the screenshot below for brevity. View the full version in the DoiT console.

OCI - Set up connection

Step 1: Set up an OCI connection

If you have installed the OCI CLI, you can use an automated CLI script. Alternatively, follow the manual setup instructions.

The script requires the OCI CLI to be installed and the configuration file to be located at ~/.oci/config.

  1. Copy the script provided in the DoiT console and run it in your terminal.

  2. Copy the output values (Tenancy OCID, User OCID, and Home Region) for the next step.

Step 2: Provide tenancy details

Fill in the following fields:

  • Connection name: A descriptive name for the OCI connection.

  • Tenancy OCID: Your OCI tenancy identifier. You can find this value at cloud.oracle.com/tenancy. The expected format is ocid1.tenancy.oc1..<unique_id>.

  • User OCID: The OCID of the IAM user you created for DoiT. You can find this value at cloud.oracle.com/identity/domains. The expected format is ocid1.user.oc1..<unique_id>.

  • Home Region: Your OCI home region. For example, us-ashburn-1.

Add API Key

In this step, DoiT automatically generates a temporary API key pair. You need to upload the public key to your OCI user.

OCI users can have a maximum of three API keys by default. If you've reached this limit, delete an existing key in the OCI console before adding the new one.

OCI - Add API key

If you have installed the OCI CLI, you can use an automated CLI script. Alternatively, follow the manual steps.

Copy the CLI script provided in the DoiT console and run it in your terminal. The script uploads the generated public key to your OCI user.

Validate and save

  1. Select Validate connection to verify that DoiT can access your OCI billing data.

  2. If the validation succeeds, select Save and complete to finalize the connection.

Billing update frequency

OCI cost reports are generated every six hours (see OC Cost Report Types for details); DoiT data pipeline fetches the OCI billing data every eight hours.