wallix / awless

A Mighty CLI for AWS
http://awless.io/
Apache License 2.0
4.98k stars 262 forks source link

whoami does not seem to support paths for IAM users #277

Closed nicerobot closed 4 years ago

nicerobot commented 4 years ago

My user is defined with a path (and as an email), like analysts/some.one@example.com, e.g. ARN is arn:aws:iam::123456789012:user/analysts/some.one@example.com

Running awless whoami fails with:

[verbose] awless v0.1.11 - loading AWS session with profile 'security' and region 'us-west-2'
Username: analysts/some.one, Id: AIDA..., Account: 123456789012
[error]   ValidationError: The specified value for userName is invalid. It must contain only alphanumeric characters and/or the following: +=,.@_-
        status code: 400, request id: X-X-X-X-X