tristanmorgan/awskeyring

Update command failed.

tristanmorgan opened this issue · 0 comments

Describe the bug
I tried to update an account manually (intentionally restrictive IAM permissions prevent the rotate command from working) and received an error

To Reproduce
Steps to reproduce the behaviour:

  1. Ran Command 'awskeyring update ACCOUNT_NAME'
  2. entered my new key and secret..
  3. got the error
$ awskeyring update personal-aws 
       access key id: AKIAXXXXXXXXXXXXXXXX
   secret access key: ****************************************
Traceback (most recent call last):
	8: from /Users/tristan/bin/awskeyring:29:in `<main>'
	7: from /Users/tristan/bin/awskeyring:29:in `load'
	6: from /Users/tristan/code/awskeyring/exe/awskeyring:12:in `<top (required)>'
	5: from /Users/tristan/.bundle/vendor/ruby/2.6.0/gems/thor-1.0.1/lib/thor/base.rb:485:in `start'
	4: from /Users/tristan/.bundle/vendor/ruby/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
	3: from /Users/tristan/.bundle/vendor/ruby/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
	2: from /Users/tristan/.bundle/vendor/ruby/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
	1: from /Users/tristan/code/awskeyring/lib/awskeyring_command.rb:240:in `update'
/Users/tristan/code/awskeyring/lib/awskeyring/awsapi.rb:148:in `verify_cred': missing keyword: token (ArgumentError)

Expected behaviour
Yup, didn't expect this to happen, should just work.

Desktop (please complete the following information):

  • macOS version: Big Sur 11.2 beta
  • Ruby version 2.6.3p62
  • Awskeyring Version 1.8.0