Release: AWS SDK for Ruby 1.1.4

Release Notes>Ruby>Release: AWS SDK for Ruby 1.1.4
This release adds support for launching EC2 instances using Amazon VPC, reduces library load time, and fixes an issue reported on GitHub.

Details

Submitted By: Matty@AWS
Release Date: September 8, 2011 10:03 PM GMT
Latest Version: 1.1.4
Created On: September 8, 2011 10:04 PM GMT
Last Updated: September 8, 2011 10:04 PM GMT

Latest Version

Download the latest version of the AWS SDK for Ruby:

gem install aws-sdk

New Features

Change Description
Launching instances using Amazon Virtual Private Cloud

It is now possible to launch Amazon EC2 instances into subnets configured using Amazon VPC. If you have the ID of a subnet you can pass it to InstanceCollection#create:

ec2 = AWS::EC2.new
instance = ec2.instances.create(:image_id => 'ami-123456', :subnet_id => 'subnet-123456')
            

VPC instances may also be assigned VPC security groups. InstanceCollection#create accepts both :security_groups and :security_group_ids when launching VPC instances.


instance = ec2.instances.create(
  :image_id => 'ami-123456', 
  :subnet_id => 'subnet-123456',
  :security_group_ids => 'sg-123456',
  :security_groups => 'my-vpc-security-group-name')
            
Creating VPC Security Groups

You can now create VPC security groups by passing :vpc_id to SecurityGroupCollection#create. VPC security groups behave like EC2 security groups, but they also accept egress permissions.

vpc_sg = ec2.security_groups.create('sg-name', :vpc_id => 'vpc-123456')
vpc_sg.authorize_egress('10.0.0.0/16', :protocol => :any)
vpc_sg.egress_ip_permissions.each do |permission|
  # ... 
end
            

Resolved Issues

Change Description
Library Load Time

This release improves library load time by employing autoloading and by eliminating gem dependencies that are slow to load. We've also incorporated a community contribution through GitHub which uses lazy-loading for the Rails integration with Amazon Simple Email Service.

Note: Autoloading in Ruby is known to have thread safety issues; if this is an issue for your application, you can force the SDK to load fully at application start with the following code:

AWS.eager_autoload!
            
ItemCollection#select

This release resolves an issue where the return value of this method was incorrect when used with certain hash options.

QueueCollection#with_prefix

This release corrects the behavior of this method to match its documentation.

DigiNotar certificate

In response to Mozilla recently revoking the certificates of DigiNotar and Staat der Nederlanden, we are shipping an update to the SDK that removes these certificates from the included CA bundle.

For more information, please see the DigiNotar Removal Follow Up post on the Mozilla Security Blog.

If you are unable to update to the latest version of the SDK, you can configure your current version of the SDK (since version 1.0.1) to use an updated version of the CA bundle as follows:

AWS.config(:ssl_ca_file => "path/to/ca-bundle.crt")
            

This option should be set before constructing any service interfaces. An updated version of the CA bundle can be obtained from our GitHub repository.

Supported API Versions

This release of the SDK supports the following API versions:

Service API Version
Amazon Elastic Compute Cloud 2011-02-28
Amazon SimpleDB 2009-04-15
Amazon Simple E-mail Service 2010-12-01
Amazon Simple Notifications Service 2010-03-31
Amazon Simple Queue Service 2009-02-01
Amazon Simple Storage Service 2006-03-01
AWS Identity and Access Management 2010-05-08
AWS Security Token Service 2011-06-15
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.