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 determine the distribution style of a table in Redshift database