Komiser now supports multiple cloud accounts by default. Account configuration is done through the config.toml file, using the CREDENTIALS_FILE method.
We’ve also added 2 methods of persisting your account data.
Use an OCI user and an API key for authentication. In this case, you’ll need to put your tenancy OCID, user OCID, region name, the path to an API key, and the fingerprint of the API key.
The easiest way is to let OCI walk you through the setup process by executing the following command:
$ oci setup configEnter a location for your config [/home/opc/.oci/config]:Enter a user OCID: ocid1.user.oc1..Enter a tenancy OCID: ocid1.tenancy.oc1..Enter a region by index or name(e.g. 1: ap-chiyoda-1, 2: ap-chuncheon-1, ...: eu-frankfurt-1Do you want to generate a new API Signing RSA key pair? [Y/n]: YEnter a directory for your keys to be created [/home/opc/.oci]:Enter a name for your key [oci_api_key]:Enter a passphrase for your private key (empty for no passphrase):
Now, a config file and key pair have been created in your local .oci folder:
$ ls -la /home/opc/.oci/-rw-------. 1 opc opc 302 Oct 1 11:13 config-rw-------. 1 opc opc 1675 Oct 1 11:13 oci_api_key.pem-rw-------. 1 opc opc 451 Oct 1 11:13 oci_api_key_public.pem$ cat /home/opc/.oci/config[DEFAULT]user=ocid1.user.oc1..fingerprint=e1:c8:bb:6a:71:c4:d6:28:90:7a:e3:23:0a:ed:d5:8dkey_file=/home/opc/.oci/oci_api_key.pemtenancy=ocid1.tenancy.oc1..region=eu-eu-paris-1key_password=PASSWORD
Since Komiser looks for credentials in a file called credentials. Create a credentials file in the .oci folder and copy the contents of the config file to it.