Skip to content

Release v2.1.31 - 2015-10-22

Compare
Choose a tag to compare
@awood45 awood45 released this 22 Oct 22:30
· 4474 commits to version-3 since this release

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'

    See related GitHub issue #966.

  • Issue - Aws::InstanceProfileCredentials - Now retries errors
    raised while attempting to parse the expiration time from
    instance metadata credentials.

    See related GitHub issue #880.

  • Issue - Aws::S3 - The #copy_from and #copy_to methods of Aws::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.

    See related GitHub issue #944.

  • Feature - Aws::S3 - The #copy_from and #copy_to methods of Aws::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.

    See related GitHub issue #963.

  • Feature - Aws::S3 - Aws::S3::Client#put_object now accepts closed files.

    See related GitHub issue #939.

  • Issue - Aws::S3 - The Aws::S3::Object#copy_from no longer modifies the
    given options hash.

    See related GitHub issue #947.