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:
| Method | Best for | Billing data source |
|---|---|---|
Usage Based (Usage API) | Fastest onboarding with zero bucket configuration | OCI Usage API (request_summarized_usages) |
CUR (Cost & Usage Report) | Detailed report-based ingestion from Object Storage | OCI 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
- Sign in to the Oracle Cloud Console.
- Open the Profile menu (top right) and click Tenancy:
<your-tenancy-name>(or go to Governance & Administration → Tenancy Details). - Copy the OCID (e.g.,
ocid1.tenancy.oc1..aaaa...). - 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
- 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).
- Copy the User OCID (e.g.,
ocid1.user.oc1..aaaa...). - Under Resources, click API Keys → Add API Key.
- Choose Generate API Key Pair (or upload an existing public key):
- Click Download Private Key to save the
.pemfile securely. - Click Add.
- Click Download Private Key to save the
- 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
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
- Usage Based (Recommended)
- CUR (Cost & Usage Report)
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
- In Costimizer, go to System → Data Sources.
- Click Connect cloud account and select Oracle Cloud.
- Choose Usage Based as the connection type.
- 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
.pemprivate key file
- Data Source Name — a recognizable label (e.g.,
- Click Connect.
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.
When to use
Use CUR when you want Costimizer to ingest Oracle Cost & Usage Report CSV files from OCI Object Storage.
Steps
- In Costimizer, go to System → Data Sources.
- Click Connect cloud account and select Oracle Cloud.
- Choose CUR as the connection type.
- Fill in your OCI credentials:
- Data Source Name — a recognizable label (e.g.,
OCI Production CUR) - Tenancy OCID — your OCI Tenancy OCID
- User OCID — the OCI User OCID
- Fingerprint — the API signing key fingerprint
- Region — your OCI home region identifier (e.g.,
us-ashburn-1) - Private Key — upload your
.pemprivate key file
- Data Source Name — a recognizable label (e.g.,
- Under Cost report onboarding, select one of the three onboarding options:
- Auto-create Cost & Usage Report — Costimizer configures and locates the Oracle-managed CUR report location automatically. If no report files exist yet, files will be ingested after Oracle generates the next report.
- Auto-detect existing CUR — Costimizer automatically locates an existing Cost & Usage Report in your OCI Object Storage.
- Onboard with Existing CUR Path — Manually provide the Object Storage location where your Oracle cost reports are stored:
- Report Namespace — Object Storage namespace holding the reports (for example,
blingfor Oracle-managed reports) - Bucket Name — the Object Storage bucket name containing your CUR exports
- Bucket Prefix — the folder prefix within the bucket (e.g.,
reportsorreports/cost-csv)
- Report Namespace — Object Storage namespace holding the reports (for example,
- Click Connect.
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
| Symptom | Likely cause & fix |
|---|---|
| Invalid config / authentication failed | Verify the Tenancy OCID, User OCID, Fingerprint, and .pem Private Key belong to the same OCI user and have no extra whitespace. |
| Currency mismatch error | Ensure your Costimizer organization currency matches the billing currency reported by OCI Usage API. |
| Account inactive error | Usage 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. |