AnykeyNL / OCI-AutoScale

Automatic Scaling for OCI BM Database Cloud Service (Schedule based)
Universal Permissive License v1.0
112 stars 64 forks source link

When script installed on Oracle Base Database, it doesn't work #33

Closed arjen-keesy closed 9 months ago

arjen-keesy commented 9 months ago

I have installed it on an Oracle Base Database environment, but when executing the script, the OCI library doesn't connect to my own tenant, but to some oracle internal tenant ( dbaascpfra1 ), and of course that will not work, because it can not find any of my Services. Any idea how to let the script connect to the right tenant ?

AnykeyNL commented 9 months ago

Oracle Database Service does not run in your own tenancy, but is managed by oracle / running in Oracle's tenancy. So you can not use Instance Principle to have the right permissions. If you do want to run the script inside that instance, you need to configure the OCI CLI for normal config authentication. You can run the oci setup config command to configure this. Also make sure the API key is then added to your user's profile.