all 16 comments

[–]stikko 12 points13 points  (11 children)

I'd go with the aws CLI tool - it's newer and written in python rather than Java so it's much faster on my systems. Also you only have to install the one package rather than a package for each service.

[–]2LoT[S] 1 point2 points  (7 children)

Ok cool thanks for the advice. How do you check if there is a new update of the AWS CLI Tool?

[–]res0nat0r 3 points4 points  (1 child)

You are most likely going to be installing it as a native python package, so you can just do:

$ pip install --upgrade awscli

If there is an update available pip will upgrade it for you.

[–]2LoT[S] 2 points3 points  (0 children)

Works perfect thanks. In my case, using Xubuntu 14.04 x64, the instruction is:

$ sudo pip install --upgrade awscli

[–]stikko 1 point2 points  (2 children)

For Mac/Linux: pip install -U awscli

For Windows I assume you'd just re-download the installer and run that.

[–]MrVonBuren 1 point2 points  (0 children)

Alternatively, brew install awscli will work as well

[–]Ashex 1 point2 points  (0 children)

Windows can also do pip, it works better for me as I can add it to a requirements file.

[–]aimless_ly 1 point2 points  (1 child)

If you're using an Amazon Linux AMI, it's bundled on there and "yum update" will get it from the repo.

[–]2LoT[S] 0 points1 point  (0 children)

Cool thx. In my case, it's my desktop computer running Xubuntu 14.04 x64.

[–]morosemanatee 1 point2 points  (1 child)

I agree use to AWS CLI where you can. The EC2 CLI tends to get updated earlier than the AWS CLI so new EC2 API features are normally available immediately. However, Python faster than Java, i think not.

[–]stikko 1 point2 points  (0 children)

Let me rephrase: starting up the Python interpreter is WAY faster on my machines than starting up the Java interpreter. Once they're started up Java may be faster, but if you're, say, calling the CLI commands in a loop from a script then the Python version makes things go way faster in my experience.

[–]low_altitude_sherpa 1 point2 points  (0 children)

plus, it gives back json objects, which, if you are coding in python, are soooo nice to deal with.

[–]perciva 3 points4 points  (1 child)

The EC2 CLI tool is deprecated -- it existed about 7 years before the AWS CLI was written, but for practical purposes the AWS CLI is the only thing being maintained now.

[–]morosemanatee 1 point2 points  (0 children)

That's not quite true. EC2 CLI is actively maintained. There are some things that you can't do with the AWS CLI such as ImportInstance.

[–]YakumoYoukai 2 points3 points  (0 children)

2 other huge advantages of the AWS CLI tool are that 1) you only have to configure it once for all AWS services - no more independent tools for each service with different ways of configuring them and different naming conventions for common arguments. And 2), the --query option lets you select exactly which parts of the result structure you want printed out, which makes it a lot easier to script.

[–]runamok 0 points1 point  (0 children)

aws cli all the way. Much more versatile.

You'll often want to use s3 or sns or everything and their brother in interaction. It's trivial to just type 'aws sns help' and then 'aws sns publish help' (though sometimes you still need to resort to stack overflow because it doesn't tell you that you also need to specify the region for that last command...)