Oracle Cloud Infrastructure Billing Sources
For Oracle Cloud Infrastructure, the billing source is a service user account that has been granted specific permissions.
Oracle Cloud Infrastructure must be enabled as a cloud provider in System Settings > Application Settings > Cloud Provider Settings before beginning this process. For more information, see Cloud Provider Settings.
In the Oracle Console
- Create a Group named ServiceUsersFinancial. For information on creating groups, see Oracle's documentation: Creating a Group.
- Create a policy to grant the ServiceUsersFinancial group the following permissions. For information on creating policies, see Oracle's documentation: Creating a Policy.
DEFINE tenancy cost-report-tenancy AS ocid1.tenancy.oc1..aaaaaaaaned4fkpkisbwjlr56u7cj63lf3wffbilvqknstgtvzub7vhqkggq ENDORSE group ServiceUsersFinancial TO READ objects IN tenancy cost-report-tenancy ALLOW group ServiceUsersFinancial TO INSPECT tenant IN tenancy ALLOW group ServiceUsersFinancial TO INSPECT compartments IN tenancy ALLOW group ServiceUsersFinancial TO INSPECT organizations-family IN tenancy
The OCID in the DEFINE statement is the location of the Oracle-owned storage bucket where your cost reports are stored. For more information on how Oracle stores financial data, see Oracle's documentation: Cost and Usage Reports.
- Commercial. ocid1.tenancy.oc1..aaaaaaaaned4fkpkisbwjlr56u7cj63lf3wffbilvqknstgtvzub7vhqkggq
- Government. ocid1.tenancy.oc2..aaaaaaaaned4fkpkisbwjlr56u7cj63lf3wffbilvqknstgtvzub7vhqkggq
- Federal. ocid1.tenancy.oc3..aaaaaaaaned4fkpkisbwjlr56u7cj63lf3wffbilvqknstgtvzub7vhqkggq
- Create a service user that belongs to that group. For information on creating users, see Oracle's documentation: Creating a User.
- Create an API key for the service user. For more information, see Oracle's documentation: Generating an API Signing Key (Console).
In Kion
- Navigate to Accounts > Billing Sources.
- Click Add New.
- For Account Type, select Oracle Cloud Infrastructure.
-
File Type selection
- Selecting FOCUS will generate data from the FOCUS data export
- Click here for more information on the FOCUS spec and how to get setup
- Selecting FOCUS and Oracle Cost Report will prioritize generating data from the FOCUS export, and the Oracle Cost Report will be an alternative option if Kion is unable to find the FOCUS export.
- Selecting Oracle Cost Report will generate data from the default Oracle billing file.
- Selecting FOCUS will generate data from the FOCUS data export
- Enter a Billing Source Name.
- Enter the Tenancy OCID and User OCID for the API key you created above. For information on finding these IDs, see Oracle's documentation: Where to Get the Tenancy's OCID and User's OCID.
- Upload the .pem file for your API Private Key.
- Enter the Fingerprint for the API key you created above. For information on finding this, see Oracle's documentation: How to Get the Key's Fingerprint.
- Enter your Billing Region.
- Choose a Billing Start Date. This is the earliest month Kion will try to fetch financial data for.
- Click Test Billing Source. If you receive an error message, verify your credentials and permissions.
- Leave Skip Billing Source validation unchecked.
- Click Create Billing Source.