Replace aws-sdk-go with aws-sdk-go-v2 which features improved HTTP status code retries. This will handle retrying an HTTP 503 for both the S3 Manager GetBucketRegion API, as well as the subsequent GetBucketObject requests.
I largely followed the migration guide for this, combined with reading the source code to better understand the config loader.
TODO
[x] Verify that the "Forbidden" error is still identified
Replace aws-sdk-go with aws-sdk-go-v2 which features improved HTTP status code retries. This will handle retrying an HTTP 503 for both the S3 Manager GetBucketRegion API, as well as the subsequent GetBucketObject requests.
I largely followed the migration guide for this, combined with reading the source code to better understand the config loader.
TODO
Fixes #51