Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. irb(main):001:0> require_relative 'test'
  2. AWS SDK version: 2.7.16
  3. == TEST: test_copy_west_from_east
  4. IT'S GOOD
  5.  
  6. == TEST: test_copy_east_from_west
  7. IT'S GOOD
  8.  
  9. # ^ copy_from works fine regardless of direction
  10.  
  11. == TEST: test_copy_east_to_west
  12. S3 client configured for "us-east-1" but the bucket "mziwisky-west-test" is in "us-west-2"; Please configure the proper region to avoid multiple unnecessary redirects and signing attempts
  13. IT'S GOOD
  14.  
  15. # ^ that first copy_to from us-east-1 to us-west-2 spit out a warning, but still worked by following the redirect
  16.  
  17. == TEST: test_copy_east_to_west
  18. IT'S GOOD
  19.  
  20. # ^ running the copy_to from us-east-1 to us-west-2 a second time works w/o warning due to the bucket-to-region cache that the gem builds internally
  21.  
  22. == TEST: test_copy_west_to_east
  23. Aws::S3::Errors::PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
  24. from /Users/mziwisky/.gem/ruby/2.1.7/gems/aws-sdk-core-2.7.16/lib/seahorse/client/plugins/raise_response_errors.rb:15:in `call'
  25. from /Users/mziwisky/.gem/ruby/2.1.7/gems/aws-sdk-core-2.7.16/lib/aws-sdk-core/plugins/s3_sse_cpk.rb:19:in `call'
  26. from /Users/mziwisky/.gem/ruby/2.1.7/gems/aws-sdk-core-2.7.16/lib/aws-sdk-core/plugins/s3_dualstack.rb:24:in `call'
  27. from /Users/mziwisky/.gem/ruby/2.1.7/gems/aws-sdk-core-2.7.16/lib/aws-sdk-core/plugins/s3_accelerate.rb:34:in `call'
  28. from /Users/mziwisky/.gem/ruby/2.1.7/gems/aws-sdk-core-2.7.16/lib/aws-sdk-core/plugins/idempotency_token.rb:18:in `call'
  29. from /Users/mziwisky/.gem/ruby/2.1.7/gems/aws-sdk-core-2.7.16/lib/aws-sdk-core/plugins/param_converter.rb:20:in `call'
  30. from /Users/mziwisky/.gem/ruby/2.1.7/gems/aws-sdk-core-2.7.16/lib/seahorse/client/plugins/response_target.rb:21:in `call'
  31. from /Users/mziwisky/.gem/ruby/2.1.7/gems/aws-sdk-core-2.7.16/lib/seahorse/client/request.rb:70:in `send_request'
  32. from /Users/mziwisky/.gem/ruby/2.1.7/gems/aws-sdk-core-2.7.16/lib/seahorse/client/base.rb:207:in `block (2 levels) in define_operation_methods'
  33. from /Users/mziwisky/.gem/ruby/2.1.7/gems/aws-sdk-resources-2.7.16/lib/aws-sdk-resources/services/s3/object_copier.rb:33:in `copy_object'
  34. from /Users/mziwisky/.gem/ruby/2.1.7/gems/aws-sdk-resources-2.7.16/lib/aws-sdk-resources/services/s3/object_copier.rb:19:in `copy_to'
  35. from /Users/mziwisky/.gem/ruby/2.1.7/gems/aws-sdk-resources-2.7.16/lib/aws-sdk-resources/services/s3/object.rb:103:in `copy_to'
  36. from /Users/mziwisky/test.rb:63:in `test_copy_west_to_east'
  37. from /Users/mziwisky/test.rb:88:in `block in <top (required)>'
  38. from /Users/mziwisky/test.rb:86:in `each'
  39. from /Users/mziwisky/test.rb:86:in `<top (required)>'
  40. from (irb):1:in `require_relative'
  41. from (irb):1
  42. from /Users/mziwisky/.rubies/ruby-2.1.7/bin/irb:11:in `<main>'
  43.  
  44. # ^ copy_to from us_west_2 to us_east_1 explodes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement