anjuna-nitro-cli describe-enclaves

anjuna-nitro-cli describe-enclaves [OPTIONS...]

Describes AWS Nitro Enclaves running on the host.

If AWS Nitro Enclaves are running on the EC2 instance, anjuna-nitro-cli describe-enclaves displays the attributes of the running enclaves.

Options

Usage

anjuna-nitro-cli describe-enclaves [OPTIONS...]

--metadata

Adds EIF metadata of the current enclaves to the command output

Global options

The following options are available for all commands.

Global options

-h, --help

Prints the help information for the command

-v, --version

Prints version information

Exit status

anjuna-nitro-cli describe-enclaves always returns 0.

The output is in JSON format and can be parsed by using a tool like jq.

Examples

$ anjuna-nitro-cli describe-enclaves

[
  {
    "EnclaveName": "nginx",
    "EnclaveID": "i-099bbecdf13a99ec9-enc18b1c0a73dde5b4",
    "ProcessID": 15937,
    "EnclaveCID": 16,
    "NumberOfCPUs": 2,
    "CPUIDs": [
      1,
      3
    ],
    "MemoryMiB": 1024,
    "State": "RUNNING",
    "Flags": "DEBUG_MODE",
    "Measurements": {
      "HashAlgorithm": "Sha384 { ... }",
      "PCR0": "9ebaadb0cb90e82b1af0283096d492bebcbf83f42f8ffac4f207157ed2c8029a27edcbf5d31f27649768dbca72609cd9",
      "PCR1": "6fbec60e4a158ca5d41655ec90a67213856f35e97f16cf7241b138f5b328a6421a6f8f898d865797cfcad128bb45480f",
      "PCR2": "86b8221b827a29dfe1b5205203b6a148fdb99bfb8e2fcf45fa8a0afb40bab3d9ba501d17ba1ca893d34620a751bfbe16"
    }
  }
]
$ anjuna-nitro-cli describe-enclaves --metadata

[
  {
    "EnclaveName": "nginx",
    "EnclaveID": "i-099bbecdf13a99ec9-enc18b1c0a73dde5b4",
    <snip...>
    "Measurements": {
      "HashAlgorithm": "Sha384 { ... }",
      "PCR0": "9ebaadb0cb90e82b1af0283096d492bebcbf83f42f8ffac4f207157ed2c8029a27edcbf5d31f27649768dbca72609cd9",
      "PCR1": "6fbec60e4a158ca5d41655ec90a67213856f35e97f16cf7241b138f5b328a6421a6f8f898d865797cfcad128bb45480f",
      "PCR2": "86b8221b827a29dfe1b5205203b6a148fdb99bfb8e2fcf45fa8a0afb40bab3d9ba501d17ba1ca893d34620a751bfbe16"
    }

    "ImageName": "nginx",
    "ImageVersion": "080ed0ed8312deca92e9a769b518cdfa20f5278359bd156f3469dd8fa532db6b",
    "Metadata": {
      "BuildTime": "2023-09-08T20:16:03.961368178+00:00",
    <snip...>
  }
]