News for hackers. Stuff that matters.
Re:Jungle – Simple CLI for AWS operations by achiku on Monday August 24, 2015 @09:14AM (#10109476)
awscli is by far the most comprehensive CLI tool manipulating various AWS services, and I really like its flexible options and up-to-date release cycle. However, day-to-day AWS operations from my terminal don't need that much flexibility and that many services. Rather, I wanted just small set of UNIX-like commands which are easy to use and remember. So I wrote this small Python package.

If you are interested, please let me hear what you think!

Re:Jungle – Simple CLI for AWS operations by willejs on Monday August 24, 2015 @04:05PM (#10112637)
I really like this, i use the AWS cli daily, and its syntax and options are very comprehensive, but not so user friendly.
Re:Jungle – Simple CLI for AWS operations by achiku on Monday August 24, 2015 @09:08PM (#10113824)
Thanks! Let me hear how it fits to your daily operation!
Re:Jungle – Simple CLI for AWS operations by rem7 on Monday August 24, 2015 @09:37AM (#10109563)
As most people have already said awscli is awesome and very complete; and I like awscli. The commands can get pretty long and when you have to look at the help doc every time to see what arguments you're missing it can get tedious. So Thanks for creating this!
Re:Jungle – Simple CLI for AWS operations by mdaniel on Monday August 24, 2015 @12:28PM (#10110979)
If you aren't already aware, the recent versions of awscli have started accepting the full JSON payloads, which I realize seems like it's worse but in my experience one usually interacts with a few common cases and leaving the JSON around for editing is both a great reminder and saves a bunch of keystrokes.

http://docs.aws.amazon.com/cli/latest/userguide/generate-cli...

Re:Jungle – Simple CLI for AWS operations by achiku on Monday August 24, 2015 @01:44PM (#10111638)
I know awscli is trying to use skelton JSON to save keystrokes, and it certainly helps a lot of adhoc operations to be done quickly without spending precious cognitive load. I use JSON parameter template in my shell script, but feel like it is not for "command line tool". It is just my feeling, but still hard to neglect since I'm really used to UNIX-like command line tool.
Re:Jungle – Simple CLI for AWS operations by mdaniel on Monday August 24, 2015 @02:08PM (#10111822)
Oh, yes, I hope my comment didn't come across as "you can replace jungle with a ton of JSON"; I was trying to speak to the comment by @rem7 about trying to remember all the crazy syntax of the command line.

I haven't tried jungle yet, but I am glad it exists and I thank you for open sourcing it to improve our aws experience, too.

Re:Jungle – Simple CLI for AWS operations by achiku on Monday August 24, 2015 @09:17PM (#10113872)
Thanks! reporting issues and pr are all welcomed!
Re:Jungle – Simple CLI for AWS operations by aexaey on Monday August 24, 2015 @09:48AM (#10109638)
Thanks for introducing me to boto3. Being able to write compact and powerful stuff like:

print [i.console_output()['Output'] for i in boto3.resource('ec2').instances.filter(Filters=[{'Name': 'tag:Name', 'Values': ['frontend17']}])][0]

...is pretty awsesome!

Re:Jungle – Simple CLI for AWS operations by achiku on Monday August 24, 2015 @01:23PM (#10111471)
I love boto, but when I filed the issue and received the answer from a committer, I decided to move to boto3. I can understand the situation but, boto seems to be be strictly backward compatible. So let's move on to boto3 and have nice Resource API with all AWS services.

https://github.com/boto/boto/pull/3186

Re:Jungle – Simple CLI for AWS operations by douglasss on Monday August 24, 2015 @09:16AM (#10109481)
It's like you knew what I wanted before I wanted it. This is great. I hated saving long "commands" for every operation I wanted to do. I will definitely check this out and use this!

Thanks!

Re:Jungle – Simple CLI for AWS operations by achiku on Monday August 24, 2015 @09:19AM (#10109492)
Thanks for the comment! Yeah, I hear you. awscli is really awesome tool, but when it comes to day-to-day/adhoc operations, it doesn't do well like Unix tools. And that is exactly why I wrote this!
Re:Jungle – Simple CLI for AWS operations by duggan on Monday August 24, 2015 @10:33AM (#10110036)
I wrote a similar tool for Digital Ocean a couple of years ago, for the same reasons! Improving CLI UX is shooting fish in a barrel, few designers seem to care about the non-web experience.
Re:Jungle – Simple CLI for AWS operations by achiku on Monday August 24, 2015 @01:16PM (#10111401)
Yeah, right. Quick and dirty CLI experience is a bit different from fancy GUI!
Re:Jungle – Simple CLI for AWS operations by nzoschke on Monday August 24, 2015 @12:16PM (#10110867)
Great idea and great execution. SSH by instance ID is a tool I need right now but never found the time to build. I'll give jungle a spin!
Re:Jungle – Simple CLI for AWS operations by achiku on Monday August 24, 2015 @01:26PM (#10111482)
Thank you for your comment! It really helps me to keep moving on! If you find any issue or space for improvement, please let me know, since the software is just borned a couple days ago!
Re:Jungle – Simple CLI for AWS operations by dostick on Monday August 24, 2015 @07:47PM (#10113521)
Couldn't this or 90% of this be done using bash aliases? Is there project like that out there? So you don't have to install all the dependencies, etc.
Re:Jungle – Simple CLI for AWS operations by achiku on Monday August 24, 2015 @09:06PM (#10113820)
Yeah, you are right. It is perfectly possible to wrap awscli by shell script and do exactly the same thing with what this tool does. However, generally speaking, it will be more and more difficult to test and maintain as a tool becomes large, especially if it's written in shell script. Python has awesome testing library (I love py.test), and the most importantly, has really cool AWS mock library moto (https://github.com/spulec/moto). These are pretty much why I picked Python, rather than bash alias or shell script for this tool.
Re:Jungle – Simple CLI for AWS operations by reddit_clone on Monday August 24, 2015 @01:47PM (#10111667)
Nice! Can it use profiles from credentials file or just the default?
Re:Jungle – Simple CLI for AWS operations by achiku on Monday August 24, 2015 @01:53PM (#10111708)
Thanks! I thinks you can use profile since all the settings related to credential are based on boto3.

http://boto3.readthedocs.org/en/latest/guide/quickstart.html...

Re:Jungle – Simple CLI for AWS operations by 8maki on Monday August 24, 2015 @10:59AM (#10110271)
good job!
Re:Jungle – Simple CLI for AWS operations by achiku on Monday August 24, 2015 @01:14PM (#10111390)
Thanks, Mr. CEO!