OCI CLI script to create boot vlume backup fails after recent OCI identity changes
I have a script running on one of my OCI VM instances that creates boot volume backups. This script has been running without any issues for years but today it failed. I assume that this is related to OCI identity changes. Today when I was logging into my OCI admin console I was forced to enable MFA.
Initially "oci iam compartment list" call started failing with "NotAuthenticated" error. I've created Dynamic Group and policy to give instance on which the script is running rights to manage all resources in tenancy and set OCI_CLI_AUTH=instance_principal. This fixed this call but the next call in my script ("oci bv boot-volume-backup list") is now failing with 'status': 404, 'code': 'NotAuthorizedOrNotFound'.