AWS automation - ruby sdk vs python sdk

I am impartial to using ruby vs python for doing some automation work in AWS. Which aws sdk is more developed?


Related discussions:

Python’s Boto3 all the way.

awscli is written with boto/boto3 so I’d assume that probably means it’s the most developed.

I would recommend Python as that lends itself to writing Lambda functions (Ruby is not currently supported in Lambda).

Terraform with a python wrapper

Ruby because of the Python love already posted

So the AWS SDKs are actually just thin wrappers around a pseudo RPC interface (that they pretend it’s a REST api, it’s not).

All the SDKs are generated from a set of JSON files which define all the API calls possible.

But ruby and python are special, boto3 and ruby-sdk have some additional JSON files that only they use, that generate additional code which provides an OO layer on top of the base API layer.

I personally use Python (boto3) but both the ruby-sdk and boto3 sdk are generated from the same JSON files and so provided 1-1 functionality.

So it really doesn’t matter which one you choose, they will get the same features at the same time.

Sort of… see boto3 and ruby-sdk actually have additional hand written code (separate from the code generated by the JSON files) that adds functionality on top of the OO code. And unfortunately they are not 1-1 in this case.

For example boto3 has much better s3 multipart-upload and streaming code than the ruby-sdk.

However the ruby-sdk has native support for client side encrypted s3 objects. Which boto3 does not. (I had to write a patch for that, but haven’t had a chance to get it pushed upstream yet.)

So really, all things considered equal. Just pick the language your most comfortable with. And just hope you don’t need to use one of the small differences. :slight_smile:

I was in your same spot a year+ ago. Echoing what’s already been posted, I realized that a python script turned into a lambda function with trivial modifications and add to that fact that boto3 is what awscli is written in (so you know it’ll get a ton of immediate attention).

So I write everything in boto3 now, but I still love ruby and actually prefer the way it handles things. My mind just works better with it.

Depends what you want to do.

There also fog for ruby, if you’d rather not use the SDK: http://www.rubydoc.info/github/fog/fog-aws/Fog/Compute/AWS

Ruby’s paginators are so much better than boto3’s, and the documentation is far better. As a result, I vastly prefer using the Ruby SDK, I just wish they would make ruby for lambda already.

You can’t be so obvious when you troll, brother

Lambda only support python 2.7

which is what everyone is using anyway

Not trying to troll. I enjoy using Ruby on AWS and gave my opinion especially after seeing all of the Python love

I wrote so many ruby scripts using ruby sdk until I moved to python :slight_smile:

Being already familiar with ruby and not python (when I started working with AWS), I went with python+boto3 because AWS marketed their python SDK the most and for what it’s worth, when I come across situations such as Python being available for lambda and not ruby, I feel vindicated in my decision.