11.1.4 OCI Credentials and Configuration Setup

This topic provides the systematic instructions on the OCI Credentials and Configuration Setup.

Note:

Subscription for the Document Understanding services in OCI is required. Oracle Cloud Identifier (OCID) of the compartment is required to access the Document Understanding services.
  1. Create a folder secret.

  2. Login to OCI with your credentials.
  3. Open the Profile menu and click My profile.

  4. In the Resources section at the bottom left, click API Keys.

  5. Click Add API Key at the top left of the API Keys list. The Add API Key dialog displays.

  6. Click Download Private Key, the file gets downloaded.

  7. Click Add. A Pop-up window Configuration File Preview is displayed. Copy the content of file in a text file.

  8. Save the file in the secret folder.

  9. Copy the Private Key file downloaded in the secret folder created.

  10. Edit oci_config.txt file. Change the key file path to the path of the private file in the secret folder. For example: key_file=./secret/oracle_oci.user-01-29-09-12.pem.

  11. In the oci_config.txt file, add a parameter name compartment_id. Specify the OCID of the compartment you will use for Document Uunderstanding Services.

  12. Save the file oci_config.txt.
  13. Move the logging-config.json, system-config.json and application-config.json to the current working directory.
  14. Make sure the below folder structure is followed:
    • root_dir
      • secret
      • Config.ini
      • system-config.json
      • application-config.json
      • logging-config.json