anjuna-nitro-cli terminate-enclave

Terminates an enclave.

SYNOPSIS

anjuna-nitro-cli terminate-enclave
anjuna-nitro-cli terminate-enclave --all
anjuna-nitro-cli terminate-enclave --enclave-id <enclave-id>

DESCRIPTION

Terminate an enclave that is running.

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, terminate that enclave:
        anjuna-nitro-cli terminate-enclave

 or: Terminates all enclaves that are running:
        anjuna-nitro-cli terminate-enclave --all

 or: Terminates a specific enclave based on its ID:
        anjuna-nitro-cli terminate-enclave --enclave-id <enclave-id>

 or:    anjuna-nitro-cli terminate-enclave [FLAGS]

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

EXIT STATUS

  • 0 on success

  • > 0 on error

EXAMPLES

anjuna-nitro-cli terminate-enclave

or

anjuna-nitro-cli terminate-enclave --all

or

anjuna-nitro-cli terminate-enclave --enclave-id i-0f2c4b721470e92c4-enc1776bc0278e90b9

To retrieve the enclave-id of the currently running enclave, you can use the following command (assuming you have jq installed):

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)