aws-cli portable for windows?

Miguel Costa picture Miguel Costa · Jan 9, 2018 · Viewed 7.6k times · Source

this is probably not a big issue for most people but do you know if there is anywhere a portable version for windows of aws-cli.

This because some people might want to install it for example in company laptops and not have admin rights to do it so I was wondering if I could find a portable version somewhere.


edit

could not find a proper portable software version for it but if you manage to install python and use pip then the installation following the instructions in github are quite easy.

final update

I was quite lucky because my company just introduced python as a tool that they allow us to install so I managed to use pip. the only thing I needed to consider was the user flag so it installs where I have permissions:

pip install --user awscli
pip install --target=YOUR_PATH awscli

Answer

Hyon picture Hyon · Jan 9, 2020

This is how I've gotten around this issue in the past:

I downloaded (.msi) and install AWS CLI onto my personal laptop then I copy this entire directory (/Amazon/AWSCLI/..) to my corporate laptop where I don't have Admin rights. Then you can either temporarily update the PATH environment variable in your cmd/powershell session or you can permanently update your user variable's PATH to include the location of aws.exe.

It appears you will have to use the aws.exe under /bincompat (instead of /bin) as of their newest release. I haven't yet tested this version to see what limitation exists.