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?

demandé il y a un an263 vues
2 réponses
0
Réponse acceptée

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.

répondu il y a un an
profile pictureAWS
EXPERT
vérifié il y a un an
0

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

répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions