wt_s3_signer 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/wt_s3_signer.rb +5 -1
- data/lib/wt_s3_signer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0908117b872ba1badb9f010a76340c448fc21ff6aac26402579f783dcddea546'
|
4
|
+
data.tar.gz: e5a36577aacaa1f5469c5d961819cd7c0d7750b95a290866b503868cc84b995e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 254e632e8d8f3eb272a454174c3fed5a4398f6eb8877e800ef23cb77f4769267f6fcb4bb1969fbd6d1dafc80210678e7946bffec4501bcb7b1b4bdf16c7b6a9d
|
7
|
+
data.tar.gz: 4226038fc92b5d5241cc6b14954f9823b4b3ac97af292bba4a96534722a65aba83cd2c732c5b98d359e0c451bbd27efc06850411ed383cfb5080eeb347211585
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 1.0.1
|
2
|
+
* Set `instance_profile_credentials_retries` to 5 in the S3::Client instance to prevent "missing credentials" errors
|
3
|
+
|
1
4
|
## 1.0.0
|
2
5
|
* Remove option `client:` `from WT::S3Signer.for_s3_bucket`
|
3
6
|
* Uses a singleton s3_client by default to take advantage of AWS credentials cache
|
data/lib/wt_s3_signer.rb
CHANGED
@@ -173,7 +173,11 @@ module WT
|
|
173
173
|
# AWS gems have a mechanism to cache credentials internally. So take
|
174
174
|
# advantage of this, it's necessary to use the same client instance.
|
175
175
|
def self.client
|
176
|
-
@client ||= Aws::S3::Client.new
|
176
|
+
@client ||= Aws::S3::Client.new(
|
177
|
+
# The default value is 0. If the metadata service fails to respond, it
|
178
|
+
# will raise missing credentials when used
|
179
|
+
instance_profile_credentials_retries: 5,
|
180
|
+
)
|
177
181
|
end
|
178
182
|
private_class_method :client
|
179
183
|
|
data/lib/wt_s3_signer/version.rb
CHANGED