anjuna-nitro-cli terminate-enclave
Terminates an enclave.
SYNOPSIS
anjuna-nitro-cli terminate-enclave [--all | --enclave-id <enclave-id>] [--grace-period=N | --force]
DESCRIPTION
Terminate an enclave that is running.
When issuing the terminate-enclave option, the Anjuna Runtime will first send a SIGTERM signal to the main process inside the enclave, allowing it to do any needed termination activities to allow for a graceful termination before exiting. The main process has a grace period of 30 seconds for the termination activities. After the main process exits or the grace period expires, the Anjuna Runtime will perform any remaining termination activities and then terminate the enclave. If the grace period expires before the enclave finishes its termination activities, a message displays indicating that a forceful termination occurred due to the expiration of the grace period.
You can also define a specific grace period other than 30 seconds or decide to terminate the enclave immediately. This is described in the OPTIONS section below.
When destroying an Anjuna Enclave Pod in K8s, the same flow and behavior will take place. Refer to Destroying the EKS Cluster for more information.
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 [FLAGS] [OPTIONS] or: Terminates all enclaves that are running: anjuna-nitro-cli terminate-enclave --all [FLAGS] [OPTIONS] or: Terminates a specific enclave based on its ID: anjuna-nitro-cli terminate-enclave --enclave-id <enclave-id> [FLAGS] [OPTIONS] FLAGS: -h, --help Prints help information -V, --version Prints version information OPTIONS for Graceful Termination: --grace-period=<N> Specify a grace period in seconds <N> --force Terminate an enclave immediately (no grace period) (--force is the same as grace-period=0)
EXAMPLES
anjuna-nitro-cli terminate-enclave or anjuna-nitro-cli terminate-enclave --all or anjuna-nitro-cli terminate-enclave --enclave-id i-0f2c4b721470e92c4-enc1776bc0278e90b9 or anjuna-nitro-cli terminate-enclave --grace-period=45 or anjuna-nitro-cli terminate-enclave --force
To retrieve the 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: anjuna-nitro-cli console --enclave-id $(anjuna-nitro-cli describe-enclaves | jq -r .[0].EnclaveID) |