How To Install the AWS CLI

Published Date Author: , Posted March 29th, 2016 at 11:12:03am

http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html
http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html

1
2
3
4
5
6
7
8
cd
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
yum install python26
/usr/bin/python26 awscli-bundle/install -i /opt/aws/awscli -b /usr/bin/aws
aws configure
aws s3 ls
aws ec2 describe-instances --output text
cd
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
yum install python26
/usr/bin/python26 awscli-bundle/install -i /opt/aws/awscli -b /usr/bin/aws
aws configure
aws s3 ls
aws ec2 describe-instances --output text

ls -l ~/.aws

1
2
3
total 8
-rw------- 1 root root  43 Mar 24 18:05 config
-rw------- 1 root root 116 Mar 24 18:05 credentials
total 8
-rw------- 1 root root  43 Mar 24 18:05 config
-rw------- 1 root root 116 Mar 24 18:05 credentials

cat ~/.aws/config

1
2
3
[default]
output = json
region = us-east-1
[default]
output = json
region = us-east-1

cat ~/.aws/credentials

1
2
3
[default]
aws_access_key_id = NNNNNNNNNNNNNNNNNNNN
aws_secret_access_key = NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
[default]
aws_access_key_id = NNNNNNNNNNNNNNNNNNNN
aws_secret_access_key = NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.