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 get the name of the database in Redshift