Installing using the installation package
Environment:
Check Python version
python --version
安装步骤
1、下载安装包 $ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
2、解压压缩包 $ unzip awscli-bundle.zip
3、执行安装,并生成可执行文件
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
If you have more than one Python version you can choose the following installation method
sudo /usr/local/bin/python2.7
awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
如果没有sudo权限。可以按照下面的方式直接安装
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
./awscli-bundle/install -b ~/bin/aws
剩下的就是在环境变量里面进行配置等了。不再累述
具体可以参考http://docs.aws.amazon.com/cli/latest/userguide/installing.html#install-bundle-other-os
最后就是配置账户等信息
配置方式有两种
1、
aws configure 或者
aws configure --profile user2
2、在配置文件中直接加入 vi ~/.aws/config
具体可以参考
http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-using-examples
Installing AWS Command Line operations under Linux