AWS cli on linux

Amazon AWS has a great console for managing your instances.
As good as it is, It’s not great for using in scripts or performing quick and dirty queries.

Taking a bit of time to understand the AWS CLI won’t take as long as you might at first think and it will help you gain confidence in getting to understand the various services within AWS.

If you’re at all familiar with man pages you can use the ‘help’ arguement to break down the cli and start making use of it straight away. First things first! – Install the AWS CLI

Once installed you can accss the cli for each of the AWS services as follows:

aws ec2 <some command>
aws elb <some other command>

Each of the aws components have a useful ‘help’ page, e.g.

aws help
aws iam help

Most of the help pages are there for specific options too. For example, if you want to know which options you can use when stopping an ec2 instance, or you want to see an example showing the exact syntax of doing so:

aws ec2 stop-instances help

Have a play. You may not use the same combination of AWS services as others, but each of these help pages should help you figure out what you need to know, when you need to know it.

Advertisements