Friday, November 30, 2012

AWS Command Line Tools Updater


image



Hey there!

As you all might know, AWS have great CLI tools that provide you with power of configuration for everything. Web Management Console is usually falling behind on functionality. CLI tools are so much more fun.

However, repository is a problem for AWS CLI utilities. Check out the number of sources, which need to be checked in order to download tools:

http://awsiammedia.s3.amazonaws.com/public/tools/cli/latest/IAMCli.zip
http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip
http://s3.amazonaws.com/rds-downloads/RDSCli.zip
http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.zip
http://ec2-downloads.s3.amazonaws.com/CloudWatch-2010-08-01.zip
http://ec2-downloads.s3.amazonaws.com/ElasticLoadBalancing.zip
http://ec2-downloads.s3.amazonaws.com/AutoScaling-2011-01-01.zip
https://s3.amazonaws.com/cloudformation-cli/AWSCloudFormation-cli.zip


Internet and GitHub searches have returned numerous update scripts, though all of them showed poor results or did not perform full update cycle, so I decided to write my own.

I present you the aws_cli_updater! This script downloads, unpacks and registers all environment and PATH variables in all the right places. Each time script is started, it deletes all available content and does a clean install.

How to setup tools:

1.   1. Download from repository: 
$ cd ~/Downloads && git clone https://github.com/korjik/aws-cli-updater.git

2. Install:
$ cd ~/Downloads/aws-cli-updater && ./aws-cli-updater.sh && bash

3. Done!

New console will allow you to work with the following CLI Tools:
·         Autoscaling
·         EC2
·         RDS
·         IAM
·         CloudFormation
·         CloudWatch
·         AMI tools
·         Elastic Load Balancer

By the way, this script also works for quick tools installation, not only update.
Thanks!


No comments:

Post a Comment