buildkite / elastic-ci-stack-s3-secrets-hooks

🕵️‍♀️ Expose secrets to your buildkite build steps via Amazon S3
MIT License
24 stars 17 forks source link

Retry S3 and S3 Manager requests that receive a 503 response #52

Closed keithduncan closed 3 years ago

keithduncan commented 3 years ago

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