- Release the singleton S3 client when AWS raises credential error to be able to use a new credential next time
- Set
instance_profile_credentials_retries
to 5 in the S3::Client instance to prevent "missing credentials" errors
- Remove option
client:
from WT::S3Signer.for_s3_bucket
- Uses a singleton s3_client by default to take advantage of AWS credentials cache
- Add option
client:
toWT::S3Signer.for_s3_bucket
, so it's possible to inject a cachedAws::S3::Client
instance and prevent too many requests to the AWS metadata endpoint