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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0f72f6633de6786061caf9225caea94b6d5eeb40083895962c10ac06d711730
4
- data.tar.gz: 87d6086cc05d0372442bf3ca05623fa47865a45acd758e4a0450e5329cc4aa76
3
+ metadata.gz: '0908117b872ba1badb9f010a76340c448fc21ff6aac26402579f783dcddea546'
4
+ data.tar.gz: e5a36577aacaa1f5469c5d961819cd7c0d7750b95a290866b503868cc84b995e
5
5
  SHA512:
6
- metadata.gz: 876a30ce3e8074072fb2380a3083ead9980948774cc41d0c28ac7ce8815b09271b5b764bb1e897eeba6de5b762b81206c50e28b69bb9df7df7df611329819416
7
- data.tar.gz: aae3c570d6db90e7274c47bdd99b9d1bd5c53ca2a2715d137577dda6c6120c5a3db9eb858acebc8259efb8308143d4b9a8a4d8da6830a98999c5bc2913a8b01a
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
 
@@ -1,5 +1,5 @@
1
1
  module WT
2
2
  class S3Signer
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wt_s3_signer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Suriano