How To Install the AWS CLI
erics, March 29th, 2016
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 AWS CLI v2
1 2 3 |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install |
AWS CLI v1
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 |
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 |
cat ~/.aws/config
1 2 3 |
[default] output = json region = us-east-1 |
cat ~/.aws/credentials
1 2 3 |
[default] aws_access_key_id = NNNNNNNNNNNNNNNNNNNN aws_secret_access_key = NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN |