I'm using Ubuntu Intrepid Ibex 8.10:
$ uname -a
Linux godzer 2.6.27-11-generic #1 SMP Thu Jan 15 11:42:36 UTC 2009 x86_64 GNU/Linux
$ gem list
aws-s3 (0.5.1)
[other gems here]
$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
$ s3sh
Welcome to interactive ruby!
irb --> Base.establish_connection!(
:access_key_id => "[secret_here]",
:secret_access_key => "[secret_here]",
:server => "mysubdomain.s3.amazonaws.com")
irb --> S3Object.store("mytempfile.txt", "sometextvalue")
AWS::S3::PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint.
Please send all future requests to this endpoint.
from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/error.rb:38:in `raise'
from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/base.rb:72:in `request'
from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/base.rb:83:in `put'
from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/object.rb:241:in `store'
from (irb):2
irb --> S3Object.store("mytempfile.txt", "sometextvalue", "mysubdomain")
AWS::S3::PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint.
Please send all future requests to this endpoint.
from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/error.rb:38:in `raise'
from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/base.rb:72:in `request'
from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/base.rb:83:in `put'
from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/object.rb:241:in `store'
from (irb):3
How can I solve this? |