Configure the AWS CLI Network Proxy
All communications between client applications and the AWS server must be done through the COS proxy and the environment variable HTTPS_PROXY or https_proxy should be set. If both variables are defined, then the AWS CLI will use https_proxy.
For example:
export HTTPS_PROXY=localhost:3128