common-fate / granted

The easiest way to access your cloud.
https://granted.dev
MIT License
956 stars 90 forks source link

Add the role that was retrieved to the error message when role assumption fails (AWS) #623

Open dgilman-hrp opened 3 months ago

dgilman-hrp commented 3 months ago

Currently, when role assumption fails in AWS, the error message is displayed to the user. However, it would be helpful if it also included the role that was attempted to be assumed. This would help a lot when debugging issues with developers and in scripts.

[i] It looks like you don't have the right permissions to access this role -> [i] It looks like you don't have the right permissions to access this role: ReadRole