ec2-api tools
Author
Anjani Phuyal
Date
May 26, 2014
Category
AWS
Read Time
3 min read
Installing aws-cli
***sudo apt-get install -y python-pip
***sudo pip install awscliAdd your Access Key ID and Secret Access Key to$HOME/.aws-config using this format:
*** sudo vi $HOME/.aws-config
**************************************************
[default]
aws_access_key_id =
aws_secret_access_key =
region = eu-west-1
**************************************************Protect the config file:
chmod 600 $HOME/.aws-configSet an environment variable pointing to config file. For future convenience, also add this line to your $HOME/.bashrc
export AWS_CONFIG_FILE=$HOME/.aws-configNow, wasn't that a lot easier than installing and configuring all of the old tools?
Testing
Test your installation and configuration:
aws ec2 describe-regionsThe default output is in JSON. You can try out other output formats:
aws ec2 describe-regions –output text
aws ec2 describe-regions –output tableDetails: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html
#AWS#CLI#EC2