aws-sdk-core 3.15.0 → 3.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/aws-sdk-core/instance_profile_credentials.rb +17 -8
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c0ed04e344f8b8d148ad29c32aa5dce229e813d
|
4
|
+
data.tar.gz: 1e6826559216d061dddcf9b0eceaf9908ad87486
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fec3fb521ce71d2a57213e103d3ac496f4fc9858ca56d3f585da64a5e2e44400fdb21dfabf19f131ba4ef0765eda3ea4089685a099467478789b0cd650af0b74
|
7
|
+
data.tar.gz: dbd9f1b1789ddec21207597115ac5f3f3cb5f966257bc181c3ae4d524fab586f5290f340380d4225a4a326436e15fa720fdaafb45d969f4775e0450e616d883a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.16.0
|
@@ -83,19 +83,28 @@ module Aws
|
|
83
83
|
def get_credentials
|
84
84
|
# Retry loading credentials a configurable number of times if
|
85
85
|
# the instance metadata service is not responding.
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
86
|
+
if _metadata_disabled?
|
87
|
+
'{}'
|
88
|
+
else
|
89
|
+
begin
|
90
|
+
retry_errors(NETWORK_ERRORS, max_retries: @retries) do
|
91
|
+
open_connection do |conn|
|
92
|
+
path = '/latest/meta-data/iam/security-credentials/'
|
93
|
+
profile_name = http_get(conn, path).lines.first.strip
|
94
|
+
http_get(conn, path + profile_name)
|
95
|
+
end
|
92
96
|
end
|
97
|
+
rescue
|
98
|
+
'{}'
|
93
99
|
end
|
94
|
-
rescue
|
95
|
-
'{}'
|
96
100
|
end
|
97
101
|
end
|
98
102
|
|
103
|
+
def _metadata_disabled?
|
104
|
+
flag = ENV["AWS_EC2_METADATA_DISABLED"]
|
105
|
+
!flag.nil? && flag.downcase == "true"
|
106
|
+
end
|
107
|
+
|
99
108
|
def open_connection
|
100
109
|
http = Net::HTTP.new(@ip_address, @port, nil)
|
101
110
|
http.open_timeout = @http_open_timeout
|
data/lib/aws-sdk-sts.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|