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

create fails if user already has two access keys #64

Open
simonw opened this issue Jan 19, 2022 · 2 comments
Open

create fails if user already has two access keys #64

simonw opened this issue Jan 19, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@simonw
Copy link
Owner

simonw commented Jan 19, 2022

Incidentally, trying to call create with the same username 3 times hits the issue you've noted above, that there can only be 2 active access keys:

s3-credentials create --username USERNAME "BUCKET_NAME"
Attached policy s3.read-write.USERNAME to user USERNAME
Traceback (most recent call last):
...
botocore.errorfactory.LimitExceededException: An error occurred (LimitExceeded) when calling the CreateAccessKey operation: Cannot exceed quota for AccessKeysPerUser: 2

Originally posted by @kimvanwyk in #60 (comment)

@simonw simonw added the bug Something isn't working label Jan 19, 2022
@kimvanwyk
Copy link

Deactivating one of the keys wasn't enough - I got the same AccessKeysPerUser quota error when running the create command after deactivating one of the 2 access keys the user had.

After I deleted an existing access key the create command worked as expected.

@simonw
Copy link
Owner Author

simonw commented Jan 19, 2022

At the very least should make that error less ugly - but also need a useful path forward, which likely means solving:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants