Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- irb(main):001:0> require_relative 'test'
- AWS SDK version: 2.7.16
- == TEST: test_copy_west_from_east
- IT'S GOOD
- == TEST: test_copy_east_from_west
- IT'S GOOD
- # ^ copy_from works fine regardless of direction
- == TEST: test_copy_east_to_west
- 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
- IT'S GOOD
- # ^ that first copy_to from us-east-1 to us-west-2 spit out a warning, but still worked by following the redirect
- == TEST: test_copy_east_to_west
- IT'S GOOD
- # ^ 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
- == TEST: test_copy_west_to_east
- 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.
- 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'
- 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'
- 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'
- 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'
- 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'
- 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'
- 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'
- from /Users/mziwisky/.gem/ruby/2.1.7/gems/aws-sdk-core-2.7.16/lib/seahorse/client/request.rb:70:in `send_request'
- 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'
- 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'
- 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'
- 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'
- from /Users/mziwisky/test.rb:63:in `test_copy_west_to_east'
- from /Users/mziwisky/test.rb:88:in `block in <top (required)>'
- from /Users/mziwisky/test.rb:86:in `each'
- from /Users/mziwisky/test.rb:86:in `<top (required)>'
- from (irb):1:in `require_relative'
- from (irb):1
- from /Users/mziwisky/.rubies/ruby-2.1.7/bin/irb:11:in `<main>'
- # ^ copy_to from us_west_2 to us_east_1 explodes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement