AWS CLI 2 is slow to respond

Asked 2 years ago, Updated 2 years ago, 91 views

Install awscliver2 officially in windows 10 and
in git bash I ran aws --version, but it takes tens of seconds to see the version.
The condition was similar with power shell.

I don't know the cause, but does anyone know about it?

aws aws-cli

2022-09-30 21:48

2 Answers

aws --version doesn't it get faster and faster after running it a few times?

We tried it and found that CreateFile (so-called file open) has been run nearly 2000 times before aws --version is completed, requiring a lot of file access.After several runs, the files were cached and tended to improve gradually.


2022-09-30 21:48

This is not a direct answer, but when I installed aws on WSL, the symptom was not reproduced.I'll be back in a few seconds.

 [Installation instructions]
sudo apt update
sudo apt upgrade
pip3 install awscli --upgrade --user
sudo apt install awscli

Why don't you enable WSL for Win10 and install aws on WSL?

With WSL, you can check the execution time of the system call level in trace, so you may know where it is taking you.

strace-ttaws --version


2022-09-30 21:48

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.