简体   繁体   中英

AWS SSM not recognized as a command

I have installed AWSCLI and session-manager on my Ubuntu instance and confirmed the installation based on the guides. I also configured my instance using aws configure. Now when I use

aws ssm start-session --target [target_instance_id]

But I get the error below:

usage: aws [options] [...] [parameters] To see help text, you can run: aws help aws help aws help aws: error: argument operation: Invalid choice, valid choices are....

Which tells me ssm is not configured properly. How can I resolve this?

You need to update awscli using this command

sudo pip install --upgrade awscli

I had both CLI v1 and v2 installed. Using aws defaulted to v1, which doesn't support what I needed to do.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM