MySQL Shell 9.3

4.7.1 Oracle Cloud Infrastructure Object Storage

Connections to Oracle Cloud Infrastructure Object Storage can be configured in the following ways:

OCI Configuration File

MySQL Shell uses the parameters defined in the OCI CLI configuration file, config, to connect to the Object Storage service. For more information on this file, see SDK and CLI Configuration

MySQL Shell requires the following parameters in the configuration file:

  • user: OCID of the user.

  • fingerprint: generated fingerprint of the user's public key.

  • tenancy: OCID of the user's tenancy.

  • region: An Oracle Cloud Infrastructure region.

  • key_file: Full path and filename of the user's public key.

The following is an example of a configuration file:

        
        [default]
        user=ocid1.user.oc1..alphanumericstring
        fingerprint=08:23:60:....:ff:22:dd:55:20
        tenancy=ocid1.tenancy.oc1..alphanumericstring
        region=us-ashburn-1
        key_file=/home/Username/.oci/oci_api_key.pem
        
      

If you have installed and configured the OCI CLI, MySQL Shell reads the connection parameters from the default location, .oci/, automatically. To use an alternate configuration, do so from the command line, using the relevant override options.

OCI Environment Variables

You can also override the configuration file using environment variables.

For information on these variables, see CLI Environment Variables.

  • OCI_CLI_CONFIG_FILE

  • OCI_CLI_PROFILE

  • OCI_CLI_AUTH

  • Using API Key-based authentication:

    • OCI_CLI_USER

    • OCI_CLI_REGION

    • OCI_CLI_FINGERPRINT

    • OCI_CLI_KEY_CONTENT

    • OCI_CLI_KEY_FILE

    • OCI_CLI_PASSPHRASE

    • OCI_CLI_TENANCY

  • Session Token-based authentication:

    • OCI_CLI_REGION

    • OCI_CLI_KEY_FILE

    • OCI_CLI_PASSPHRASE

    • OCI_CLI_TENANCY

    • OCI_CLI_SECURITY_TOKEN_FILE

Note

OCI_CLI_KEY_CONTENT takes precedence over OCI_CLI_KEY_FILE.