instance-principal

Description

Interactive script to set up instance principal authentication for an existing compute instance.

Usage

oci setup instance-principal [OPTIONS]

Example using required parameter

Copy the following CLI commands into a file named example.sh. Run the command by typing “bash example.sh” and replacing the example parameters with your own.

Please note this sample will only work in the POSIX-compliant bash-like shell. You need to set up the OCI configuration and appropriate security policies before trying the examples.

    oci setup instance-principal