...
To create a federated user or a local user to access OCI through Abiquo, do these steps.
Log in to the OCI console and create a user following Oracle instructions for federated or local users
Federated users (IDCS): https://docs.oracle.com/en-us/iaas/Content/GSG/Tasks/addingusers.htm#Add
Local users (IAM): https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingusers.htm#Managing_Users
Assign your user to a group and allow access and/or assign an access policy to your user
For a Cloud Admin, assign the user to the Administrators group
Go to Infrastructure Regions and subscribe the user to any other required regions in addition to the home region.
...
Restrict an OCI user
One way to restrict an OCI user is to allow them to work with resources in one or more OCI Compartments only.
...
Note |
---|
The OCI user can access the billing data for the enterprise and all compartments, not only their compartments. |
Go to https://docs.oracle.com/en-us/iaas/Content/Billing/Tasks/accessingusagereports.htm#Accessing_Cost_and_Usage_Reports and get the required policy from the “Required IAM Policy” section.
(We got this one on 2022-07-28, please check for updates!).
To use cost and usage reports, the following policy statement is required:define tenancy usage-report as ocid1.tenancy.oc1..aaaaaaaaned4fkpkisbwjlr56u7cj63lf3wffbilvqknstgtvzub7vhqkggq
endorse group <group> to read objects in tenancy usage-report
Replace “<group>” with the OCI user’s group
In OCI, go to Identity → Policies and add the policy
...
Obtain an API key
To obtain Oracle API key credentials, you will need an API signing key.
...
To obtain Oracle credentials, do these steps in the Oracle console.
For local users
Go to the options menu in the top left of the screen → Identity & Security → Users
Select the user and go to API keys
For federated users
Follow the instructions in the Oracle documentation to add an API key. See https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/addingidcsusersandgroups.htm
In the section "To add API keys, auth tokens, or other Oracle Cloud Infrastructure Credentials''
Click Add API key
You can let Oracle generate an API signing key or upload your own public key and fingerprint.
If you generate an API signing key, click Download Private Key
The private key will save as a .pem file
Change the permissions of the file so only you can access it
Keep this file to enter as the secret key
Select View Configuration file.
From the Configuration File Preview you will need to prepare the following to enter them in Abiquo.User with the format
ocid1.user.oc1..aaaaaaaa7tnw...verylongstring2...
Fingerprint with the format
ab:ab:ab:bc:bc:bc:...
Tenancy with the format
ocid1.tenancy.oc1..aaaaaaaaeuu5...verylongstring1...
This is described towards the end of the second section of the official Oracle documentation on "Configuring and Connecting to Oracle Cloud with Oracle Developer Tools for VS Code".
...
To add the credentials in Abiquo do these steps.
Create at least one OCI public cloud region
Edit the tenant enterprise and go to Credentials → Public
Enter the credentials in the following format:
Access key ID:
tenancy#user#fingerprint
Enter the tenancy user and fingerprint, with “#” characters in between them. For example:ocid1.tenancy.oc1..aaaaaaaaeuu5...verylongstring1...
#ocid1.user.oc1..aaaaaaaa7tnw...verylongstring2...
#ab:ab:ab:bc:bc:bc:...
Secret access key: Private key in PEM format
-----BEGIN PRIVATE KEY-----
BLasdKKTSDksdfkiG9w0BAQaassCBKgwggaaaIBAQbCCSDDD1ZUVdsSQErS
....
-----END PRIVATE KEY-----
To use the same credentials for billing dashboards, mark the checkbox to Also use for pricing if required