aws-session-credentials 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/aws/session/credentials/cli.rb +5 -5
- data/lib/aws/session/credentials/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDIyY2QyZTNjOGIxODcwNzg3N2ExNDlmOTllMWVkZmM2YzZhNWRiMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjJkMTY3MGE1NWY5MTQ2NjRiMDMxMWMxMWVlNTJiOGUyN2JkMTcxNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzFhMWQ2OTZkNjI5YjQ5Yjc3NGNhNmMwNmVjMzIwOTU0MWUzNWRlMDUwYjNh
|
10
|
+
ZjQ5NTE1NWQ5ZTk3Njc4NzhhNmFkNzAwZDdhYjZhZWU3NmQzNGU5MThjMzU0
|
11
|
+
MTVmNGE5NTAzNDQyZTllNjcwNDc1OTY3MjNiNDgzZmYxYjMxYmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjcxNjUzNmNkN2MwMGVlMGZlMWI1MmE2ZmUwMDg2NmYwYjU2NTBiMWM0ZDdk
|
14
|
+
MDM2MTFjZDQ0NGUyZjE5ZTkyZTE4MGM5ZjkxZDAzNjE1MTg4NzQ5Y2Q4OTMw
|
15
|
+
MGQ4NDBiYWU1ZjBlZDljODYxNWE2ZDk4NzI0NzdjNTg0ZDExZjM=
|
@@ -52,8 +52,8 @@ module Aws
|
|
52
52
|
default: nil
|
53
53
|
desc 'new', 'Generates new AWS session credentials'
|
54
54
|
def new
|
55
|
-
cli_opts = options.transform_keys { |key| key.sub(/-/, '_')
|
56
|
-
SessionManager.new.new_session(cli_opts)
|
55
|
+
cli_opts = options.transform_keys { |key| key.sub(/-/, '_') }
|
56
|
+
SessionManager.new.new_session(cli_opts.deep_symbolize_keys)
|
57
57
|
end
|
58
58
|
|
59
59
|
method_option 'role-alias',
|
@@ -102,7 +102,7 @@ module Aws
|
|
102
102
|
default: nil
|
103
103
|
desc 'assume-role', 'Assumes a role'
|
104
104
|
def assume_role
|
105
|
-
cli_opts = options.transform_keys { |key| key.sub(/-/, '_')
|
105
|
+
cli_opts = options.transform_keys { |key| key.sub(/-/, '_') }
|
106
106
|
|
107
107
|
if cli_opts['role_alias']
|
108
108
|
cf = Config.new(path: cli_opts['config_file'])
|
@@ -153,7 +153,7 @@ module Aws
|
|
153
153
|
default: nil
|
154
154
|
desc 'configure', 'Configures a new source profile'
|
155
155
|
def configure
|
156
|
-
cli_opts = options.transform_keys { |key| key.sub(/-/, '_')
|
156
|
+
cli_opts = options.transform_keys { |key| key.sub(/-/, '_') }
|
157
157
|
cli_opts['source_profile'] ||= ask('Source profile (leave blank for "default"):')
|
158
158
|
cli_opts['aws_access_key_id'] ||= ask('AWS Access Key ID:')
|
159
159
|
cli_opts['aws_secret_access_key'] ||= ask('AWS Secret Access Key:', echo: false)
|
@@ -227,7 +227,7 @@ module Aws
|
|
227
227
|
default: nil
|
228
228
|
desc 'configure-role', 'Configures a new role'
|
229
229
|
def configure_role
|
230
|
-
cli_opts = options.transform_keys { |key| key.sub(/-/, '_')
|
230
|
+
cli_opts = options.transform_keys { |key| key.sub(/-/, '_') }
|
231
231
|
cli_opts['role_alias'] ||= ask('Provide an alias for this role:')
|
232
232
|
|
233
233
|
if cli_opts['role_account'] && cli_opts['role_name']
|