Closed soruma closed 3 years ago
Hi @soruma! Thank you for your commit!! Could you update doc or merge master for fixing test fail?
Oops, I see that the aws-sdk has been updated again. I'll take care of this one! Thanks for your nice commit!
Released as v1.23.0.
@soruma @k1LoW tried 1.23 locally and it's having issues with us-east-1
Maybe need to change
def find_bucket_location(id)
bucket_location = s3_client.get_bucket_location(bucket: id)
bucket_location.location_constraint
to
def find_bucket_location(id)
bucket_location = s3_client.get_bucket_location(bucket: id)
bucket_location.location_constraint.nil? || bucket_location.location_constraint.empty? ? 'us-east-1' : bucket_location.location_constraint
Related to my comment in the issue
Buckets in Region us-east-1 have a LocationConstraint of null. Maybe handle null and return us-east-1 in that case
Hi @k1LoW
Oops, I see that the aws-sdk has been updated again.
I found out why it didn't happen locally. Thank you.
(Reproduced when the latest aws-sdk is installed.)
tried 1.23 locally and it's having issues with us-east-1
I've only tested with buckets located in ap-northeast-1
.
I didn't know such a specification of AWS.
I'll fix it.
Fix #524.
Add
have_location
to see where S3 is located.