AWS Developer Blog

Tag: ruby

Blog Series: Ruby on Rails on Amazon Web Services

Welcome to a series on how to integrate Ruby on Rails apps with Amazon Web Services. In this series, we’re going to start from scratch with a simple app, and show you how to make it scalable, highly available, and fault tolerant. The Sample App For this blog series, we have built a sample app […]

Read More

AWS SDK for Ruby V2 Preview Release

Version 2 of the AWS SDK for Ruby is available now as a preview release. If you use Bundler with some standard best-practices, you should be unaffected by the v2 release of the aws-sdk gem. This blog post highlights a few things you might want to be aware of. Installing V2 Preview Release V2 of […]

Read More

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 […]

Read More

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 = […]

Read More

AWS SDK Core v2.0.0.rc12 Updates

We recently published v2.0.0.rc12 of the aws-sdk-core gem (https://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: # […]

Read More

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 […]

Read More

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 […]

Read More

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 […]

Read More

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. […]

Read More