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?

已提問 1 年前檢視次數 263 次
2 個答案
0
已接受的答案

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.

已回答 1 年前
profile pictureAWS
專家
已審閱 1 年前
0

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

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南