anjuna-nitro-cli console

Connect to the console of an enclave if it was started in debug mode.

SYNOPSIS

anjuna-nitro-cli console
anjuna-nitro-cli console --enclave-id <enclave-id>

DESCRIPTION

Displays the read-only console for the enclave that is running. The console contains the enclave startup messages and the application logs. You can use this command only if the enclave was launched with the --debug-mode command-line option (anjuna-nitro-cli run-enclave).

At this time, AWS allows only one enclave per EC2 Nitro host. In the future when more than one enclave per EC2 Nitro host is allowed, you can provide parameters to uniquely identify an enclave when more than one enclave exists.

OPTIONS

USAGE:
     When only one enclave is running, output the console of that enclave:
        anjuna-nitro-cli console

 or: Output the console of an enclave based on its ID:
        anjuna-nitro-cli console --enclave-id <enclave-id>

 or:    anjuna-nitro-cli console [FLAGS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

EXIT STATUS

  • 0 on success

  • > 0 on error

EXAMPLES

nitro-cli console

or

nitro-cli console --enclave-id i-0f2c4b721470e92c4-enc1776bc0278e90b9

To retrieve the enclave-id of the currently running enclave, you can use the following command:

anjuna-nitro-cli describe-enclaves | jq -r .[0].EnclaveID

Using this command, you can view the console output of the currently running enclave with the following command:

nitro-cli console --enclave-id $(anjuna-nitro-cli describe-enclaves | jq -r .[0].EnclaveID)