nitro-cli terminate-enclave - AWS Nitro Enclaves
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

nitro-cli terminate-enclave

Terminates a specific enclave or all enclaves owned by the current user.

To terminate a specific enclave, specify --enclave-name or --enclave-id. To terminate all enclaves, specify --all.

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: Conditional

--enclave-id

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

Type: String

Required: Conditional

--all

Indicates whether 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 }