venth/aws-adfs

The parameter --role-arn isn't working

varun1231 opened this issue · 2 comments

aws-adfs login --role-arn arn:aws:iam:xxxxxxxxxxx:role/xxxxxxxxxxxxxxxxxxxxxx doesn't work. The selection prompt comes asking for a role number.

Found the issue, the role format isn't correct - should be arn:aws:iam**::**xxxxxxxxxxx:role/xxxxxxxxxxxxxxxxxxxxxx. The error handling can still be improved with a correct message, if you want to take it up as an enhancement.

It seems to be working for me. I'm on version 1.18.1. Are you sure you've copied and pasted the role ARN exactly? It should have two :: between iam and the account ID.