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

error: Must specify Username when calling with non-User credentials #114

Open
kneemaa opened this issue Aug 10, 2020 · 3 comments
Open

error: Must specify Username when calling with non-User credentials #114

kneemaa opened this issue Aug 10, 2020 · 3 comments

Comments

@kneemaa
Copy link

kneemaa commented Aug 10, 2020

Error found on certain resource types, so far I've found it for

  • aws_iam_access_key
failed to list awsls supported resources error=ValidationError: Must specify userName when calling with non-User credentials
	status code: 400, request id: [redacted]

Our org uses SAML to generate our local STS tokens which we assign to profiles. Some of the resources require a userName to be set.

This would also be needed if we were to run AWSweeper as a container or scheduled task within AWS.

If this isn't possible, I don't mind submitting a PR to update the README

@jckuester
Copy link
Owner

Hi @kneemaa 👋

thanks for submitting this issue. If you find more resources where this is the case, please let me know. I don't know yet if I can do anything about it, but will let you know.

@aghassemlouei
Copy link
Contributor

Also observed the same isssue as @kneemaa with literally the same usecase in mind.

@jsikarin
Copy link

try adding the policy iam:getUser to whichever profile you are running this command from

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants