Unable to create parent nitro enclaves using aws cli

0

Hi,

I'm following the Hello enclave Tutorial from https://docs.aws.amazon.com/enclaves/latest/user/getting-started.html. When I try to run a instance with the following command:

aws ec2 run-instances --image-id ami-070b208e993b59cea --count 1 --instance-type c6a.xlarge --enclave-options 'Enabled=true'

I get the error message:

usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
...

Unknown options: --enclave-options, Enabled=true

Am I doing sth wrong or is the documentation obsolete?

2 Antworten
0
Akzeptierte Antwort

I could figure out what was going wrong.

I was using an outdated version of the awscli.

aws-cli/1.18.69 Python/3.8.10 Linux/5.15.0-52-generic botocore/1.16.19

With the latest version it works like a charm:

aws-cli/2.8.12 Python/3.9.11 Linux/5.15.0-52-generic exe/x86_64.ubuntu.20 prompt/off

Hopefully, this helps anyone who runs into a similar issue.

beantwortet vor einem Jahr
profile pictureAWS
EXPERTE
überprüft vor einem Jahr
0

can you check the aws-cli version? maybe you can try to upgrade your aws-cli version and try again.

beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen