Creating a service principal in Oracle Cloud Infrastructure (OCI) involves setting up a:
Here’s how you can set up and use a service principal for authenticating Backplane with OCI
Click on “Create Dynamic Group”.
Enter a Name and Description for the dynamic group
| Field | Value |
|---|---|
| Name | Backplane API |
| Description | Service Credentials for Backplane API to create compartments |
Define the Matching Rules to include the instances or resources that you want this dynamic group to manage. For example, to include all instances in your tenancy:
ALL {instance.compartment.id = '<your_compartment_ocid>'}
Navigate to Identity & Security > Policies
Click Create Policy
Allow dynamic-group '<Domain>'/'<Dynamic Group Name>' to manage all-resources in tenancy
| Field | How |
|---|---|
| User OCID | Go to Identity & Security -> Domain -> Users |
| Tenancy OCID | Go to Governance & Administrator -> Tenancy Details |
| Region | Same as above |
| API Signing Key / private key | Go to Identity & Security -> Domains -> Users -> Resources -> API Key -> Add API Key -> Generate API key pair -> Download Private Key -> Add |
| Fingerprint | Copy Fingerprint from Resources -> API Keys |
oci.json file as per template below with the information collected{
"tenancyId": "ocid1.tenancy.oc1..aaaaaaaane...",
"userId": "ocid1.user.oc1..aaaaaaaayuatcpsk...",
"fingerprint": "xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx",
"privateKey": "-----BEGIN PRIVATE KEY-----\nMIIEv...n-----END PRIVATE KEY-----\n",
"region": "uk-london-1",
"passphrase": null
}
bp cloud oci add -i 66681fa21440f6afb76522e6 --ocisecret ../oci.json
If you encounter any issues or errors in the documentation, please report on the Support Slack Channel