Download the latest version of the AWS SDK for Ruby:
gem install aws-sdk
|Generating presigned URLS using temporary security credentials||
Added support to AWS::S3::S3Object#url_for to generate presigned urls with temporary security credentials. Please note that presigned URLs from a federated session become invalid when the session expires.
policy = AWS::STS::Policy.new policy.allow(:actions => :any, :resource => :any) session = AWS::STS.new.new_federated_session('mysession', :policy => policy) s3 = AWS::S3.new(session.credentials) url = s3.buckets['mybucket'].objects['key'].url_for(:read) puts url.to_s
|Getting console output from an Amazon EC2 instance||
You can now fetch the console output from an Amazon EC2 instance.
instance = AWS::EC2.new.instance['instance-id'] puts instance.console_output
This feature was implemented by a community member (pull request).
|Finding records by ID across domains||
You can now specify which domain a record should be found in when finding by id. This makes it easier to shard your records across multiple domains.
class Product < AWS::Record::Base end # Find a record by id from sharded domains, 2 methods: Product.find('item-a', :domain => 'products-a') Product.domain('products-b').find('item-b')
|Enumerating IP Permissions on VPC Security Groups||
If one of your VPC security groups contained an permission that did not specify the port range (possible for protocols that are not TCP, UPD or ICMP) then an error could have been raised. This was handled correctly by egress permisions but not ingress. This now works for both.
|Updated AWS::S3::MultipartUpload documentation||
A community member provided missing documentation for AWS::S3::MultipartUpload#add_part :part_number (pull request).
Supported API Versions
This release of the SDK supports the following API versions:
|Amazon Elastic Compute Cloud||2011-02-28|
|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|
|Elastic Load Balancing||2011-08-15|