Release: AWS SDK for Ruby 1.5.3

Release Notes>Ruby>Release: AWS SDK for Ruby 1.5.3
This release adds support for IAM Instance Profiles, including a new credential provider interface and updates to Amazon EC2 and Auto Scaling for IAM Instance Profiles. Also adds new features to Auto Scaling and a handful of bug fixes.


Submitted By: trevor@AWS
Latest Version: 1.5.3
Created On: June 12, 2012 2:23 AM GMT
Last Updated: June 12, 2012 2:23 AM GMT

Latest Version

Download the latest version of the AWS SDK for Ruby:

gem install aws-sdk

New Features

Change Description
AWS Identity and Access Management (IAM) - Instance Profiles

IAM Instance Profiles allow you to securely deliver AWS credentials directly to your Amazon EC2 instances. You can use the updated IAM API, or the AWS Management Console to create IAM Instance Profiles, then launch instances using that profile to have your AWS credentials securely distributed to the Amazon EC2 instances running your application.

The aws-sdk gem automatically consumes IAM Instance Profile credentials distributed to your EC2 instances. The AWS SDK for Ruby now checks for credentials in the following locations:

  1. Statically configured credentials provided to AWS.config via :access_key_id and :secret_access_key.
  2. Environment variables ('AWS_ACCESS_KEY_ID' and 'AWS_SECRET_ACCESS_KEY').
  3. Environment variables ('AMAZON_ACCESS_KEY_ID' and 'AMAZON_SECRET_ACCESS_KEY').
  4. IAM Instance Profile - AWS credentials securely delivered directly to your Amazon EC2 instances.

Launching an EC2 instance with an IAM Instane Profile can be done simply by passing :iam_instance_profile to AWS::EC2::InstanceCollection#create.

ec2 =
ec2.instances.create(:image_id => 'ami-8c1fece5', :iam_instance_profile => 'profile-name')

In addition to managing profiles via the console, you can use AWS::IAM::Client to manage profiles, roles and policies.

New :credential_provider configuration option.

AWS.config now accepts :credential_provider with an an object that responds to the following methods:

  • #acces_key_id
  • #secret_access_key
  • #session_token
  • #refresh

The :signer option is now deprecated.

AWS::AutoScaling now supports IAM Instance Profiles and Spot Instances.

AWS::AutoScaling::LaunchConfigurationCollection#create now accepts two new options:

  • :iam_instance_profile
  • :spot_price

You can also get the same two attributes from an AWS::AutoScaling::LaunchConfiguration object.

Resolved Issues

Change Description

Resolved an issue with AWS::DynmoDB::BatchWrite which raised an error when retrying incomplete batch write requests that contained sets:


Resolved an issue where a no-method error was raised when trying to access #version_id on responses that do no include the version id:

Documentation fix

Corrected an example given in documentation for using custom http handlers which did not work with 1.9:

Duplicated method cleanup

AWS::DynamoDB::Table#batch_put was defined twice and the #batch_delete documentation was duplicated:

AWS::S3::PresignedPost :filename fix

Flash adds a 'filename' parameter to any posted upload. 'filename' is now allowable as a condition on presigned post uploads, which allows aws-sdk to correctly generate a signature:

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 2012-06-01
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 CloudFormation 2010-05-15
AWS Identity and Access Management 2010-05-08
AWS Security Token Service 2011-06-15
Elastic Load Balancing 2011-08-15
©2017, Amazon Web Services, Inc. or its affiliates. All rights reserved.