Create OCI Configuration File

Summary

If one generates an API signing key pair, a configuration file is generated and can be used.

References

Procedure

Access My Profile

Click on the profile icon on the right-hand side of the main OCI console to access the Profile menu:

Get API Key

Click on My profile to get the following screen:

Access API Keys Tab

Click on API keys to get the following screen:

Add API Key

From the API Keys tab, click on "Add API key" button. Ensure that the "Generate API key pair" radio button is select as shown below:

Click the "Download private key" into the ~/.oci folder.

Review Config File

After clicking "Add" key on the previous screen, the following screen appears:

The contents are copied into "~/.oci/config and update the key_file parameter to the downloaded private key file.

Note: There will be two (2) sections:

  1. [DEFAULT] for use by Ansible; and
  2. [OCI] for use by OCI.