Review

In this section we created and configured a Nitro capable EC2 instance. We discussed how to obtain the Anjuna Nitro Runtime tools, install them, and setup your shell environment (by updating the PATH variable).

We discussed how to set up your login shell so that it automatically sets this variable.

To confirm that the Anjuna Nitro Runtime tools are properly installed, run the following command:

$ anjuna-nitro-cli

which should output the following text:

Anjuna Nitro CLI 1.26.0001 (build commit: <build-commit-info>)
CLI for enclave lifetime management

USAGE:
    anjuna-nitro-cli [SUBCOMMAND]

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

SUBCOMMANDS:
    build-enclave        Builds an enclave image and saves it to a file
    console              Connect to the console of an enclave
    describe-enclaves    Returns a list of the running enclaves
    explain              Display detailed information about an error returned by a misbehaving Nitro CLI command
    help                 Prints this message or the help of the given subcommand(s)
    run-enclave          Starts a new enclave
    terminate-enclave    Terminates an enclave

If you see the following error:

-bash: anjuna-nitro-cli: command not found

the Anjuna Nitro Runtime was not installed properly or the PATH environment was not updated correctly.

In the next section we’ll take a look at the first steps in actually using the Anjuna Nitro Runtime to run applications in a Nitro Enclave.