Release: AWS SDK for Ruby 1.3.9

Release Notes>Ruby>Release: AWS SDK for Ruby 1.3.9
This release adds support for Auto Scaling, custom log formats and resolves a few issues.

Details

Submitted By: trevor@AWS
Latest Version: 1.3.9
Created On: March 31, 2012 12:07 AM GMT
Last Updated: April 2, 2012 3:22 PM GMT

Latest Version

Download the latest version of the AWS SDK for Ruby:

gem install aws-sdk

New Features

Change Description
Auto Scaling

Now supporting Auto Scaling (API version 2011-01-01).

auto_scaling = AWS::AutoScaling.new

# launch configurations need a name, image id and instance type
launch_config = auto_scaling.launch_configurations.create(
  'launch-config-name', 'ami-12345', 'm1-small')

# create an Auto Scaling group based on the launch configuration
group = auto_scaling.groups.create('group-name', 
  :launch_configuration => launch_config,
  :availability_zones => %(us-east-1a us-east-1b),
  :min_size => 1,
  :max_size => 4)

# inspect Auto Scaling activities
group.activities.each do |activity|
  puts activity.cause
  puts activity.description
end
            

See the aws-sdk API documentation for more information and examples.

Log Formatting

You can now configure a log formatter to specify a custom log message structure. There are also a few pre-configured log formatters available for use.

# custom log format
pattern = "[AWS :region :service :operation :duration]"
AWS.config(:log_formatter => AWS::Core::LogFormatter.new(pattern))

# canned log formatters (default, colored, debug, short)
AWS.config(:log_formatter => AWS::Core::LogFormatter.colored)
            

See AWS::Core::LogFormatter for more information on valid log pattern substitutions.

Resolved Issues

Change Description
URI encoding

Resolved an issue with URI encoding that could cause SignatureDoesNotMatch errors.

Logging Memory Consumption

Resolved a performance and memory consumption issue with the logging interface.

Friendlier Nokogiri dependency

Reverted Nokogiri dependency to (>= 1.4.4) to ease gem dependencies. The previous dependency (<= 1.5.0) prevented problems between Nokogiri 1.5.1 and Ruby 1.8.x; with the release of Nokogiri 1.5.2, this is no longer necessary.

Supported API Versions

This release of the SDK supports the following API versions:

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