liunx环境(使用bundled installer):
1.wget https://s3.amazonaws.com/aws-cli/awscli-bundle.zip //下载bundled installer
2.unzip awscli-bundle.zip
3.sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
如果你没有sudo权限或者是你想在当前的用户权限下面安装AWS CLI则,运行下面的命令:
./awscli-bundle/install -b ~/bin/aws
4.在做好上述准备之后,确认您是否安装python(python --version),要在python下安装pip
(1)、安装python:wget http://www.python.org/ftp/python/3.3.2/Python-3.3.2.tar.bz2
tar -jxvf Python-3.3.2.tar.bz2
cd Python-3.3.2/
./configure --prefix=/usr/local/Python-3.3.2/
make && make install
(2)、在存在python环境下,您可使用easy_install安装pip:easy_install pip
(3)、安装好pip之后,执行pip install awscli (安装时间较长,请耐心等待!)
(4)、输入aws help 检测是否安装好aws cli 或者是aws --version(有版本信息则安装成功!)
5.安装完成之后就是配置了:
输入命令:aws configure (FYI:仅供参考)依次输入您的相关信息:
AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Default region name [None]: us-west-2
Default output format [None]: ENTERAKIAIOSFODNN7EXAMPLEAKIAIOSFODNN7EXAMPLEwJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYwJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYus-west-2us-west-2ENTER
详细的您还可参考:http://docs.aws.amazon.com/zh_cn/cli/latest/userguide/cli-chap-getting-started.html,这是Amazon上的官方解释!
6.使用run -instances!
complete!!!