Difference between revisions of "Installing AWS command-line tools"
From Notes_Wiki
m (Saurabh moved page Installing EC2 command-line tools to Installing AWS command-line tools) |
m |
||
Line 1: | Line 1: | ||
<yambe:breadcrumb>Amazon_web_services|Amazon web services</yambe:breadcrumb> | <yambe:breadcrumb>Amazon_web_services|Amazon web services</yambe:breadcrumb> | ||
=Installing | =Installing AWS command-line tools= | ||
# Verify python version is greater than 2.6 with '<tt>python --version</tt>' | # Verify python version is greater than 2.6 with '<tt>python --version</tt>' |
Revision as of 07:07, 5 December 2013
<yambe:breadcrumb>Amazon_web_services|Amazon web services</yambe:breadcrumb>
Installing AWS command-line tools
- Verify python version is greater than 2.6 with 'python --version'
- Install pip using 'sudo yum -y install python-pip'
- To install aws-cli use 'sudo pip install awscli'
- To upgrade use 'pip install --upgrade awscli'
- Create '~/.aws/config' file with following contents:
- [default]
- aws_access_key_id = <key-id>
- aws_secret_access_key = <key>
- region = <region>
- If use of environment variables is desired instead of config files then use:
- export AWS_DEFAULT_REGION=<region>
- export AWS_ACCESS_KEY_ID=<key-id>
- export AWS_SECRET_ACCESS_KEY=<key>
- If there is need to access more than one AWS account then separate configuration file can be created for each at desired location and then use:
- export AWS_CONFIG_FILE=<config-file>
-
- to select desired config file
Try 'aws help', 'aws ec2 help', etc. to learn how to use command-line tools.
<yambe:breadcrumb>Amazon_web_services|Amazon web services</yambe:breadcrumb>