Release v2.1.31 - 2015-10-22
Tag release v2.1.31
References:
#874, #880, #926, #939, #942, #944, #947, #956, #961, #962, #963, #966
-
Feature - Aws::AutoScaling - The Amazon Auto Scaling service now allows you to
create launch configurations that include encrypted Amazon Elastic Block Store
(EBS) volumes. -
Feature - Aws::IAM - Adds support for resource-based policies in the AWS IAM
policy simulator. -
Feature - Aws::EC2 - Added helpful error messages when configuring an
Aws::EC2::Client
with region which is actually an availability zone.
This will prevent users from getting unhelpful networking errors.Aws::EC2::Client.new(region: 'us-east-1a') #=> raises ArgumentError: :region should be a region name, not an availability zone name; try `us-west-2' instead of `us-west-2a'
-
Issue - Aws::InstanceProfileCredentials - Now retries errors
raised while attempting to parse the expiration time from
instance metadata credentials. -
Issue - Aws::S3 - The
#copy_from
and#copy_to
methods ofAws::S3::Object
will now correctly encode URL un-safe characters as required by Amazon S3.
Without the fix, these calls fail with a signature error.s3 = Aws::S3::Resource.new obj = s3.bucket('target-bucket').object('target-key') # the key will now correctly be encoded as 'unescaped/key%20path' obj.copy_from(bucket:'source-bucket', key:'unescaped/key path') # the key will now correctly be encoded as 'unescaped/key%20path' src = S3::Object.new('source-bucket', 'unescaped/key path') obj.copy_from(src) # the key will now correctly be encoded as 'unescaped/key%20path' obj.copy_from('source-bucket/unescaped/key path')
If you have previously worked around this issue, you should remove your
code that URL encodes the key. -
Feature - Aws::S3 - The
#copy_from
and#copy_to
methods ofAws::S3::Object
now accept the source or target bucket and key as a hash with mixed
options.# old format obj.copy_from({ bucket: 'source-bucket', key: 'source-key' }, { multipart_copy: true }) # new format obj.copy_from(bucket: 'source-bucket', key: 'source-key', multipart_copy: true)
Passing two hashes is still valid.
-
Feature - Aws::S3 -
Aws::S3::Client#put_object
now accepts closed files. -
Issue - Aws::S3 - The
Aws::S3::Object#copy_from
no longer modifies the
given options hash.