s3cp
s3cp copied to clipboard
S3 Endpoints
I spotted this: https://github.com/aboisvert/s3cp/blob/master/lib/s3cp/utils.rb#L47
FYI:
aws/s3
has got a method to get this programatically: https://github.com/aws/aws-sdk-ruby/blob/master/lib/aws/s3/bucket.rb#L257
It maps to this: http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html