nitro-cli terminate-enclave - AWS

nitro-cli terminate-enclave

Terminates the specified enclave.

Syntax

nitro-cli terminate-enclave [--enclave-id enclave_id | --enclave-name enclave_name | --all]

Options

--enclave-name

The unique name of the enclave to terminate. You must specify either --enclave-name or --enclave-id.

Type: String

Required: Yes, if --enclave-id is not specified

--enclave-id

The unique ID of the enclave to terminate. You must specify either --enclave-id or --enclave-name.

Type: String

Required: Yes, if --enclave-name is not specified

--all

Indicates whether or not to terminate all of the enclaves owned by the current user.If you specify this option, omit --enclave-id and --enclave-name

Required: No

Example

Example: Terminate specific enclave

The following example terminates an enclave with an ID of i-abc12345def67890a-enc9876abcd543210ef12.

Command

nitro-cli terminate-enclave --enclave-id i-abc12345def67890a-enc9876abcd543210ef12

Output

Successfully terminated enclave i-abc12345def67890a-enc9876abcd543210ef12. { "EnclaveID": "i-abc12345def67890a-enc9876abcd543210ef12", "Terminated": true }

Example: Terminate all running enclaves

The following example terminates all of the enclaves owned by the current user.

Command

nitro-cli terminate-enclave --all

Output

Successfully terminated enclave i-abc12345def67890a-enc9876abcd543210ef12. { "EnclaveID": "i-abc12345def67890a-enc9876abcd543210ef12", "Terminated": true }