Skip to main content

Connect Oracle Cloud (OCI)

Summary​

Connect your Oracle Cloud Infrastructure (OCI) tenancy to Costimizer for multi-cloud cost visibility, resource discovery (Compute instances, Block & Boot Volumes, Object Storage buckets, and Public IPs), and FinOps chargeback.

Required role: Organization Manager or Manage Cloud Credentials
Estimated time: 10–15 minutes

Navigate to System → Data Sources → Connect cloud account → Oracle Cloud.

Connection methods​

Costimizer supports two ways to ingest billing and usage data from Oracle Cloud:

MethodBest forBilling data source
Usage Based (Usage API)Fastest onboarding with zero bucket configurationOCI Usage API (request_summarized_usages)
CUR (Cost & Usage Report)Detailed report-based ingestion from Object StorageOCI Cost & Usage Reports (.csv / .csv.gz) in Object Storage

Prerequisites (OCI Console)​

Before connecting in Costimizer, gather the following read-only API credentials from your OCI Console:

1. Find your Tenancy OCID and Region​

  1. Sign in to the Oracle Cloud Console.
  2. Open the Profile menu (top right) and click Tenancy: <your-tenancy-name> (or go to Governance & Administration → Tenancy Details).
  3. Copy the OCID (e.g., ocid1.tenancy.oc1..aaaa...).
  4. Note your Home Region / target Region identifier (e.g., us-ashburn-1, eu-frankfurt-1, ap-mumbai-1).

2. Find your User OCID and create an API Signing Key​

  1. In the OCI Console, go to Identity & Security → Domains (or Users) and select the read-only OCI user Costimizer will authenticate as (or open Profile → My profile).
  2. Copy the User OCID (e.g., ocid1.user.oc1..aaaa...).
  3. Under Resources, click API Keys → Add API Key.
  4. Choose Generate API Key Pair (or upload an existing public key):
    • Click Download Private Key to save the .pem file securely.
    • Click Add.
  5. Copy the Fingerprint displayed for the new key (formatted like aa:bb:cc:dd:...).

3. Grant read-only OCI IAM permissions​

Ensure the user's group has a read-only IAM policy in the root compartment (tenancy) covering resource discovery and billing access:

Allow group <costimizer-readonly-group> to read all-resources in tenancy
Allow group <costimizer-readonly-group> to read usage-reports in tenancy
Allow group <costimizer-readonly-group> to read objects in tenancy
Least privilege

If you want to scope permissions more tightly, grant read access on tenancies, compartments, instance-family, volume-family, virtual-network-family, buckets, objects (for CUR), and usage-reports / usage-budgets (for Usage API).

Connect in Costimizer​

When to use​

Use Usage Based when you want Costimizer to pull hourly cost and usage data directly through the OCI Usage API without setting up or pointing to an Object Storage report bucket.

Steps​

  1. In Costimizer, go to System → Data Sources.
  2. Click Connect cloud account and select Oracle Cloud.
  3. Choose Usage Based as the connection type.
  4. Fill in the connection form:
    • Data Source Name — a recognizable label (e.g., OCI Production)
    • Tenancy OCID — your OCI Tenancy OCID
    • User OCID — the OCI User OCID
    • Fingerprint — the API signing key fingerprint
    • Region — your OCI region identifier (e.g., us-ashburn-1)
    • Private Key — upload your .pem private key file
  5. Click Connect.
Currency & activity validation

During validation, Costimizer checks the OCI Usage API across the last 7 days and verifies that your OCI billing currency matches your Costimizer organization currency.

What happens next​

After connecting, Costimizer validates your OCI credentials, detects your subscribed regions and active compartments, and begins syncing billing data and cloud resources (Compute instances, Block and Boot volumes, Object Storage buckets, and Public IPs). Initial billing data typically appears within 2–4 hours.

Troubleshooting​

SymptomLikely cause & fix
Invalid config / authentication failedVerify the Tenancy OCID, User OCID, Fingerprint, and .pem Private Key belong to the same OCI user and have no extra whitespace.
Currency mismatch errorEnsure your Costimizer organization currency matches the billing currency reported by OCI Usage API.
Account inactive errorUsage Based validation checks the last 7 days of billable activity. If the tenancy is brand new with no recent usage yet, wait for activity or use CUR.
Report files not found (CUR)Confirm the Report Namespace (e.g., bling), Bucket Name, and Bucket Prefix point to .csv or .csv.gz report files in your OCI home region, and that the user has read objects permission.