Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message when Reaching Quota #1

Open
pcreux opened this issue Jan 13, 2017 · 0 comments · May be fixed by #4
Open

Improve error message when Reaching Quota #1

pcreux opened this issue Jan 13, 2017 · 0 comments · May be fixed by #4

Comments

@pcreux
Copy link
Owner

pcreux commented Jan 13, 2017

When you already have reached your quota, aws-rotate-keys will fail to create a new access key.

Creating access key...
/gems/aws-sdk-core-2.6.44/lib/seahorse/client/plugins/raise_response_errors.rb:15:in `call': Cannot exceed quota for AccessKeysPerUser: 2 (Aws::IAM::Errors::LimitExceeded)
/gems/2.3.0/gems/aws-rotate-keys-0.1.1/lib/aws_rotate_keys.rb:50:in `create_access_key'

We should rescue from Aws::IAM::Errors::LimitExceeded and either:

  1. Tell the user to use the aws console to delete a key they don't use (easy)
  2. Prompt the user with a list of keys and ask him to pick one to delete (harder)
@ianfixes ianfixes linked a pull request Jan 6, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant