OCI
Set up Wiv's read-only integration with your Oracle Cloud Infrastructure tenancy using Cloud Shell.
Written By Dotan Cohen
Last updated About 2 months ago
WIV OCI Integration: Cloud Shell Setup Guide
This document outlines the steps to set up Wiv's read-only integration with your Oracle Cloud Infrastructure (OCI) tenancy using a Terraform script executed via OCI Cloud Shell.
Created resources
The Terraform configuration creates the following dedicated resources in your OCI tenancy for the Wiv platform:
Service User:
wiv-serviceDedicated API-only user account. No console access. Contact email is stored for this user.
Service Group:
WivServiceGroupContains the
wiv-serviceuser. Member ofWivServicePolicyplusWivCostReportsEndorse.Policy:
WivServicePolicyGrants read-only permissions to
WivServiceGroup.Policy:
WivCostReportsEndorseCross-tenancy endorse statements so
WivServiceGroupcan read Objects in Oracle's billing tenancy. OCI Cost and Usage Reports (raw line-item CSV) live in Oracle-managed Object Storage, not inside your tenancy.API Key
RSA key pair for secure API authentication. Public key is stored in OCI. Private key is exported to a credentials file.
Tag Namespace:
WivIntegrationUsed for tracking and identifying the integration resources.
Permissions granted to Wiv (all read-only)
The WivServicePolicy and WivCostReportsEndorse grant the WivServiceGroup read-only access as follows:
Cloud Advisor: If Terraform or policy validation fails with an error similar to No permissions found for
optimizer-api-family, Cloud Advisor may not be provisioned in your tenancy yet. In the OCI Console, open Billing & Cost Management → Cloud Advisor, complete any activation steps, then re-runterraform apply. Some Terraform bundles define an optionalenable_cloud_advisorvariable: when true, it createsWivCloudAdvisorPolicywithAllow group WivServiceGroup to read optimizer-api-family in tenancy. The defaultwiv-oci-setupconfiguration may attach the sameread optimizer-api-familystatement toWivServicePolicyinstead or as well—check Identity → Policies after deploy.
Wiv security assurance: access limitations
Wiv's access is strictly limited to ensure the security of your environment and data.
What Wiv cannot do
No Mutating Operations: Wiv is prohibited from performing any write, modify, or delete operations on your resources. All permissions are strictly for inspection or reading.
No Sensitive Data Access: Wiv cannot read the contents of your tenancy storage buckets' object data for general workloads, database data, instance internals, or vault secrets by default policy. Inventory uses resource metadata only. Workflows that use OCI Cost and Usage Reports deliberately read billing line-item files that Oracle publishes in the shared billing Object Storage tenancy (not from your tenancy buckets)—that access is narrowly scoped by the
WivCostReportsEndorsepolicy above.
Security controls and notes
Zero Write Permissions: Wiv cannot create, modify, or delete any resources.
Auditability: Every API call made by Wiv is logged in Governance → Audit. These logs can be filtered by Request Principal =
wiv-service.Revocation: Access can be immediately and easily revoked by deleting the
wiv-serviceuser.Access Method: Access is exclusively via API keys; Wiv has no console access or password.
OCI Cloud Shell setup steps
Step 1: Open OCI
Log into your OCI Console: https://cloud.oracle.com
Click the Cloud Shell icon (terminal icon) in the top-right corner.
Wait for the Cloud Shell to initialize (approximately 30 seconds).
Step 2: Download setup files
Run these commands in the Cloud Shell:
wget https://wiv-onboarding.s3.us-east-1.amazonaws.com/oci/wiv-oci-setup.zip unzip wiv-oci-setup.zipStep 3: Run setup script
Run the setup script. It will automatically detect your Tenancy OCID and Region.
chmod +x setup.sh ./setup.shThe script will prompt you for:
Your Company Name: Enter your company name.
Contact Email: Enter your email (this will be the email for the
wiv-serviceuser).Environment: Press Enter for
prod.
Confirm and deploy when prompted.
Step 4: Download credentials file
Once deployment is complete:
Click the Cloud Shell menu (⋮) in the top-right.
Select Download.
Enter the filename:
wiv-credentials-[YourCompany]-prod.jsonThe file will download to your local computer.
Step 5: Upload the JSON file to Wiv OCI integration
Check that the resources were created successfully:
Identity → Users: Find
wiv-serviceIdentity → Groups: Find
WivServiceGroupIdentity → Policies: Find
WivServicePolicy,WivCostReportsEndorse, and—if enabled—WivCloudAdvisorPolicy
Revoke access (if needed)
Access is immediately revoked upon user deletion.
Option 1: Via Terraform (recommended)
cd wiv-oci-setup/ terraform destroyOption 2: Via OCI Console
Navigate to Identity → Users.
Select
wiv-service.Click Delete.