Hi Everyone

Just a quick note for anyone using the aws-sdk ruby gem for interfacing with 
Riak CS. Today I did a test update to version 1.9.5 and found that setting the 
s3_endpoint through AWS.config didn't work anymore and only setting it on a per 
connection basis did. I reverted to 1.8.5 and that functionality came back.

On the same note, there was a pull done into the aws-sdk Github 
(https://github.com/aws/aws-sdk-ruby/pull/224) that shows the s3_endpoint 
argument is up for deprecation in favour of regions. Digging into the changes, 
AWS have created new classes - Region and RegionCollection which pull their 
listings from aws-sdk-configurations.amazonwebservices.com/endpoints.json. 
They've also extended the region naming to the endpoint address calculation. 
Namely, this bit of code:

add_service 'S3', 's3' do |region|
    if region == 'us-east-1'
      's3.amazonaws.com'
    else
      's3-%s.amazonaws.com' % region
    end
end

which gets eval'd into AWS::Core::Configuration

I'll hopefully get a patch together at some point that allows custom regions to 
be added.

Cheers,
Dave
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to