Installing AWS Command Line operations under Linux

Source: Internet
Author: User
Tags curl awscli

Installing using the installation package

Environment:

    • Linux, OS X, or Unix

    • Python 2 version 2.6.5+ or Python 3 version 3.3+

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.