VSTS to AWS
AWS CLI is supported on Python, which is an excellent cross-platform tool.
Python package management works well. To add the following line to
An alternative is to install AWS CLI with command (run as Administrator on Windows):
pip install awscli pip freeze > requirements.txt
Linux Hosted generates command to restore Python packages. Make sure it is active in your project:
> python -m pip install \--upgrade pip && pip install -r requirements.txt
If AWS integration in VSTS is not enabled, the workaround is to use
Linux Hosted build.
To generate credentials file for AWS CLI tool add command task to the build with the following syntax:
echo "[default] aws_access_key_id = YOUR_AWS_KEY aws_secret_access_key = YOUR_AWS_KEY_SECRET " > $HOME/.aws/credentials
To publish to AWS (for Sphinx documentation\’s HTML):
cd build/html; aws s3 sync --delete ./ s3://bucket_name