aws-sdk-core 3.65.1 → 3.66.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ec9fdf113b40a884e183f5d3b931728f2accea8
|
4
|
+
data.tar.gz: 3999aaff5c4a302016315f8df1ff8e2f8dd2f409
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e987848064b5c11b8909c97239abd7287b4e584805636b4d0c6b2b01169ba677f6ca41f994c18929b08bd3c3d111d84b6585223ce84110e20989b5f62a939f06
|
7
|
+
data.tar.gz: 1c330cf83d45356298c1a4a31d76599d3a11d71932d270d6e3205a86fdd89e79f3a65ac8d6d458843312062bcad8f21bbb71d2bbba13fb20ded48bcbc6f7be69
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.66.0
|
@@ -60,22 +60,20 @@ module Aws
|
|
60
60
|
nil
|
61
61
|
end
|
62
62
|
|
63
|
+
def determine_profile_name(options)
|
64
|
+
(options[:config] && options[:config].profile) || ENV['AWS_PROFILE'] || ENV['AWS_DEFAULT_PROFILE'] || 'default'
|
65
|
+
end
|
66
|
+
|
63
67
|
def shared_credentials(options)
|
64
|
-
|
65
|
-
|
66
|
-
else
|
67
|
-
SharedCredentials.new(
|
68
|
-
profile_name: ENV['AWS_PROFILE'].nil? ? 'default' : ENV['AWS_PROFILE'])
|
69
|
-
end
|
68
|
+
profile_name = determine_profile_name(options)
|
69
|
+
SharedCredentials.new(profile_name: profile_name)
|
70
70
|
rescue Errors::NoSuchProfileError
|
71
71
|
nil
|
72
72
|
end
|
73
73
|
|
74
74
|
def process_credentials(options)
|
75
|
-
profile_name = options[:config].profile if options[:config]
|
76
|
-
profile_name ||= ENV['AWS_PROFILE'].nil? ? 'default' : ENV['AWS_PROFILE']
|
77
|
-
|
78
75
|
config = Aws.shared_config
|
76
|
+
profile_name = determine_profile_name(options)
|
79
77
|
if config.config_enabled? && process_provider = config.credentials_process(profile_name)
|
80
78
|
ProcessCredentials.new(process_provider)
|
81
79
|
else
|
@@ -87,13 +85,7 @@ module Aws
|
|
87
85
|
|
88
86
|
def assume_role_credentials(options)
|
89
87
|
if Aws.shared_config.config_enabled?
|
90
|
-
|
91
|
-
if options[:config]
|
92
|
-
profile = options[:config].profile
|
93
|
-
region = options[:config].region
|
94
|
-
assume_role_with_profile(options[:config].profile, options[:config].region)
|
95
|
-
end
|
96
|
-
assume_role_with_profile(profile, region)
|
88
|
+
assume_role_with_profile(options)
|
97
89
|
else
|
98
90
|
nil
|
99
91
|
end
|
@@ -123,9 +115,11 @@ module Aws
|
|
123
115
|
end
|
124
116
|
end
|
125
117
|
|
126
|
-
def assume_role_with_profile(
|
118
|
+
def assume_role_with_profile(options)
|
119
|
+
profile_name = determine_profile_name(options)
|
120
|
+
region = (options[:config] && options[:config].region)
|
127
121
|
Aws.shared_config.assume_role_credentials_from_config(
|
128
|
-
profile:
|
122
|
+
profile: profile_name,
|
129
123
|
region: region,
|
130
124
|
chain_config: @config
|
131
125
|
)
|
@@ -51,8 +51,9 @@ module Aws
|
|
51
51
|
super
|
52
52
|
end
|
53
53
|
|
54
|
-
# @return [Integer]
|
55
|
-
#
|
54
|
+
# @return [Integer] Number of times to retry when retrieving credentials
|
55
|
+
# from the instance metadata service. Defaults to 0 when resolving from
|
56
|
+
# the default credential chain ({Aws::CredentialProviderChain}).
|
56
57
|
attr_reader :retries
|
57
58
|
|
58
59
|
private
|
data/lib/aws-sdk-sts.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -77,8 +77,8 @@ module Seahorse
|
|
77
77
|
if options.key?(name)
|
78
78
|
options[name]
|
79
79
|
else
|
80
|
-
msg = "
|
81
|
-
raise ArgumentError, msg %
|
80
|
+
msg = "missing option: `%s'"
|
81
|
+
raise ArgumentError, msg % name.inspect
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
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.66.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: 2019-
|
11
|
+
date: 2019-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|