AWS Developer Tools Blog
Category: Ruby
Version 2 Resource Interfaces
In version 1 of the AWS SDK for Ruby provides a 1-to-1 client class for each AWS service. For many services it also provides a resource-oriented interface. These resource objects use the client to provide a more natural object-oriented experience when working with AWS APIs. We are busy working resource interfaces for the v2 Ruby […]
Response Paging
We’ve been busy working on version 2 of the AWS SDK for Ruby. One of the features we added recently was response paging. Paging in the Version 1 Ruby SDK In version 1 of the Ruby SDK provides collection classes for many AWS resources. These collections are enumerable objects that yield resource objects. iam = […]
AWS SDK Core v2.0.0.rc12 Updates
We recently published v2.0.0.rc12 of the aws-sdk-core gem (http://github.com/aws/aws-sdk-core-ruby). This release merges the long-running normalized branch onto master. Upgrading Notes Please note, when updating to rc12, you may need to make some minor code changes. These are summarized below: Service modules now have a Client class, these should be used to construct API clients: # […]
Downloading Objects from HAQM S3 using the AWS SDK for Ruby
The AWS SDK for Ruby provides a few methods for getting objects out of HAQM S3. This blog post focuses on using the v2 Ruby SDK (the aws-sdk-core gem) to download objects from HAQM S3. Downloading Objects into Memory For small objects, it can be useful to get an object and have it available in […]
Ruby 2.1 on AWS OpsWorks
We are pleased to announce that AWS OpsWorks now supports Ruby 2.1. Simply select the Ruby version you want, your Rails stack – Passenger or Unicorn, the RubyGems version, and whether you want to use Bundler. Then deploy your app from your chosen repository – Git, Subversion, or bundles on S3. You can get started […]
Ruby SDK Version 2 and Memoization
Version 1 of the AWS SDK for Ruby (aws-sdk gem) provides a higher-level abstraction for working with AWS resources. These resources can be used to get information about AWS objects and operate on them as well. For example: AWS.ec2.instances.each do |i| puts i.instance_id + ‘ => ‘ + i.status.to_s end The problem with the example […]
Parameter Validation
One of my favorite features of version 2 of the AWS SDK for Ruby (aws-sdk-core gem) is the new parameter validation system. One of the challenges in using an API library is understanding how to specify request parameters. During development stages it is common to make mistakes and to generate errors. Using the version 1 […]
Flexible Gem Dependencies
Version 1 of the AWS SDK for Ruby (aws-sdk gem) depends on Nokogiri and JSON. While these are robust and performant libraries, there are multiple reasons why a developer may not want to be locked into these dependencies: I might want to use pure Ruby solutions that do not require native extensions for maximum portability. […]
Using RSpec 3
Using RSpec 3 I have been a long time user of RSpec and many of the Ruby projects I work with use RSpec as the primary testing framework. It provides an expressive specification DSL. As you may know, RSpec 3 is currently in the works. I have blogged a few times recently about using MiniTest. […]
Ruby 2.0 on AWS OpsWorks
We are pleased to announce that AWS OpsWorks now supports Ruby 2.0. Simply select the Ruby version you want, your Rails stack – Passenger or Unicorn, the RubyGems version, and whether you want to use Bundler. Then deploy your app from your chosen repository – Git, Subversion, or bundles on S3. You can get started […]