Where AWS CLI is installed during Team Services Visual Studio build

'aws' is not recognized as an internal or external command in the Visual Studio Team Services "Hosted" build

During the VSTS "Hosted" build, I run the Windows batch file with the following:

    python -c "import urllib; urllib.urlretrieve('https://bootstrap.pypa.io/get-pip.py', r'C:\python27\Tools\get-pip.py')"
    python C:\python27\Tools\get-pip.py
    python -m pip install --upgrade --user awscli
    aws s3 cp /source s3://bucketName

How to find where aws cli is installed?

I looked at these places:

C: \ Program Files \ Amazon \ AWSCLI

C: \ Program Files (x86) \ Amazon \ AWSCLI

+4
source share
1 answer

If we are talking about a module awscli, since you are installing the module in user space, it is most likely installed in %APPDATA%\python\<python_version>\site-packages\awscli- if you are not sure what you can always do:

python -m site --user-site

site-packages, .

, " ", script aws.cmd script %APPDATA%\Python\Scripts ( python -m site --user-base, %APPDATA%\Python ), , aws.cmd do:

%APPDATA%\Python\Scripts\aws.cmd s3 cp /source s3://bucketName

P.S. , 15 -. , , .

+2

Source: https://habr.com/ru/post/1672379/


All Articles