How to list all roles in your AWS account

Run the below command to view all the roles defined in an AWS account.

aws iam list-roles
See also  How to List, Create and Delete aliases for your AWS account