-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to fix up the region detection for #5
We try 3 different methods: 1. Parsing directly out of the URL that is being used (this seemed broken for s3:// URLs) 2. Doing a DNS lookup of <bucket>.s3.amazonaws.com and then reversing the resulting IP to see if it has a region in it. I think this was working at one point but they seem to be using different hostnames now so I'm now trying to regex extract the region. 3. Using the AmazonS3Client.getBucketLocation call to determine the region. This only works if the AWS credentials have access to the getBucketLocation call which is why it's last.
- Loading branch information
Showing
1 changed file
with
50 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters